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.
ibnmajah:351Hishām b. ʿAmmār > Maslamah b. ʿUla > al-Awzāʿī > Yaḥyá b. Abū Kathīr > Abū Salamah > Abū Hurayrah

"A man passed by the Prophet while he was urinating, and greeted him with the Salam, but he did not return the greeting. While he finished, he struck the ground with his palms and did dry ablution (Tayammum), then he returned the greeting."  

ابن ماجة:٣٥١حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ حَدَّثَنَا مَسْلَمَةُ بْنُ عُلَىٍّ حَدَّثَنَا الأَوْزَاعِيُّ عَنْ يَحْيَى بْنِ أَبِي كَثِيرٍ عَنْ أَبِي سَلَمَةَ عَنْ أَبِي هُرَيْرَةَ قَالَ

مَرَّ رَجُلٌ عَلَى النَّبِيِّ ﷺ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيْهِ فَلَمَّا فَرَغَ ضَرَبَ بِكَفَّيْهِ الأَرْضَ فَتَيَمَّمَ ثُمَّ رَدَّ عَلَيْهِ السَّلاَمَ  


See similar narrations below:

Collected by Nasāʾī, Abū Dāwūd, Ibn Mājah
nasai:37Maḥmūd b. Ghaylān > Zayd b. al-Ḥubāb And Qabīṣah > Sufyān > al-Ḍaḥḥāk b. ʿUthmān > Nāfiʿ > Ibn ʿUmar

"A man passed by the Prophet ﷺ when he was urinating and greeted him with Salam, but he did not return his greeting."  

النسائي:٣٧أَخْبَرَنَا مَحْمُودُ بْنُ غَيْلاَنَ حَدَّثَنَا زَيْدُ بْنُ الْحُبَابِ وَقَبِيصَةُ قَالاَ أَنْبَأَنَا سُفْيَانُ عَنِ الضَّحَّاكِ بْنِ عُثْمَانَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

مَرَّ رَجُلٌ عَلَى النَّبِيِّ ﷺ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيْهِ السَّلاَمَ  

abudawud:16ʿUthmān And ʾAbū Bakr Āb.ā Abū Shaybah > ʿUmar b. Saʿd > Sufyān > al-Ḍaḥḥāk b. ʿUthmān > Nāfiʿ > Ibn ʿUmar

A man passed by the Prophet (sal Allaahu alayhi wa sallam ) while he was urinating, and saluted him. The Prophet (sal Allaahu alayhi wa sallam) did not return the salutation to him. Abu Dawud said : It is narrated on the authority of Ibn 'Umar that the Prophet (sal Allaahu alayhi wa sallam) performed tayammum, then he returned the salutation to the man.  

أبو داود:١٦حَدَّثَنَا عُثْمَانُ وَأَبُو بَكْرٍ ابْنَا أَبِي شَيْبَةَ قَالاَ حَدَّثَنَا عُمَرُ بْنُ سَعْدٍ عَنْ سُفْيَانَ عَنِ الضَّحَّاكِ بْنِ عُثْمَانَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

مَرَّ رَجُلٌ عَلَى النَّبِيِّ ﷺ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيْهِ  

قَالَ أَبُو دَاوُدَ وَرُوِيَ عَنِ ابْنِ عُمَرَ وَغَيْرِهِ أَنَّ النَّبِيَّ ﷺ تَيَمَّمَ ثُمَّ رَدَّ عَلَى الرَّجُلِ السَّلاَمَ
ibnmajah:353ʿAbdullāh b. Saʿīd And al-Ḥusayn b. Abū al-Sarī al-ʿAsqalānī > Abū Dāwud > Sufyān > al-Ḍaḥḥāk b. ʿUthmān > Nāfiʿ > Ibn ʿUmar

"A man passed by the Prophet while he was urinating and greeted him with the Salam, and he did not return the greeting."  

ابن ماجة:٣٥٣حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ وَالْحُسَيْنُ بْنُ أَبِي السَّرِيِّ الْعَسْقَلاَنِيُّ قَالاَ حَدَّثَنَا أَبُو دَاوُدَ عَنْ سُفْيَانَ عَنِ الضَّحَّاكِ بْنِ عُثْمَانَ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ قَالَ

مَرَّ رَجُلٌ عَلَى النَّبِيِّ ﷺ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيْهِ