(3) Purification
كتاب الطهارة
(3b) Chapter: How to act when relieving oneself - Section 2
(2) باب آداب الخلاء - الفصل الثاني
Mishkat al-Masabih 359 
‘A'isha told that when the Prophet came out from the privy he said, "Grant Thy forgiveness.” Tirmidhi, Ibn Majah and Darimi transmitted it.
وَعَنْ عَائِشَةَ قَالَتْ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا خَرَجَ مِنَ الْخَلَاءِ قَالَ «غفرانك» . رَوَاهُ التِّرْمِذِيّ وَابْن مَاجَه والدارمي
 صَحِيح  (الألباني)حكم :
Reference : Mishkat al-Masabih 359
In-book reference : Book 3, Hadith 71