Hadith 374
Mishkat al-Masabih
Purification · How to act when relieving oneself - Section 3
Arabic
وَعَنْ أَنَسٍ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: إِذَا خَرَجَ مِنَ الْخَلَاءِ قَالَ: «الْحَمْدُ لِلَّهِ الَّذِي أَذْهَبَ عَنِّي الْأَذَى وَعَافَانِي» . رَوَاهُ أبن مَاجَه
English translation
Anas reported that when the Prophet (ﷺ) came out of the privy he said, “Praise be to God who has removed harm from me and kept me in health.” Ibn Majah transmitted it.