Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:30ʿAmr b. Muḥammad al-Nāqid > Hāshim b. al-Qāsim > Isrāʾīl > Yūsuf b. Abū Burdah from his father > ʿĀʾishah

When the Prophet ﷺ came out of the privy, he used to say: "Grant me Thy forgiveness."  

أبو داود:٣٠حَدَّثَنَا عَمْرُو بْنُ مُحَمَّدٍ النَّاقِدُ حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ حَدَّثَنَا إِسْرَائِيلُ عَنْ يُوسُفَ بْنِ أَبِي بُرْدَةَ

عَنْ أَبِيهِ حَدَّثَتْنِي عَائِشَةُ ؓ أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا خَرَجَ مِنَ الْغَائِطِ قَالَ غُفْرَانَكَ  


See similar narrations below:

Collected by Aḥmad, Dārimī, Suyūṭī
ahmad:25220Hāshim b. al-Qāsim > Isrāʾīl > Yūsuf b. Abū Burdah from his father > ʿĀʾishah

[Machine] "When the Prophet ﷺ would come out of the restroom, he would say, 'I seek Your forgiveness.'"  

أحمد:٢٥٢٢٠حَدَّثَنَا هَاشِمُ بْنُ الْقَاسِمِ حَدَّثَنَا إِسْرَائِيلُ عَنْ يُوسُفَ بْنِ أَبِي بُرْدَةَ عَنْ أَبِيهِ قَالَ حَدَّثَتْنِي عَائِشَةُ

أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا خَرَجَ مِنَ الْغَائِطِ قَالَ غُفْرَانَكَ  

darimi:707Mālik b. Ismāʿīl > Isrāʾīl > Yūsuf b. Abū Burdah from his father > ʿĀʾishah

"When the Prophet would exit the toilet he would say: 'Ghufranak.'" (Using translation from Tirmidhī 7)   

الدارمي:٧٠٧أَخْبَرَنَا مَالِكُ بْنُ إِسْمَاعِيلَ حَدَّثَنَا إِسْرَائِيلُ عَنْ يُوسُفَ بْنِ أَبِي بُرْدَةَ عَنْ أَبِيهِ أَنَّ عَائِشَةَ حَدَّثَتْهُ

أَنَّ النَّبِيَّ ﷺ كَانَ إِذَا خَرَجَ مِنَ الْخَلَاءِ قَالَ «غُفْرَانَكَ»