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:352Sūwayd b. Saʿīd > ʿĪsá b. Yūnus > Hāshim b. al-Barīd > ʿAbdullāh b. Muḥammad b. ʿAqīl > Jābir b. ʿAbdullāh

"A man passed by the Prophet while he was urinating, and greeted him by the Salam. The Messenger of Allah said to him: "If you see me in this situation, do not greet me with the Salam, for if you do that I will not respond to you.'"  

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

أَنَّ رَجُلاً مَرَّ عَلَى النَّبِيِّ ﷺ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ إِذَا رَأَيْتَنِي عَلَى مِثْلِ هَذِهِ الْحَالَةِ فَلاَ تُسَلِّمْ عَلَىَّ فَإِنَّكَ إِنْ فَعَلْتَ ذَلِكَ لَمْ أَرُدَّ عَلَيْكَ  


See similar narrations below:

Collected by Suyūṭī
suyuti:1890a

"A man passed by the Prophet while he was urinating, and greeted him by the Salam. The Messenger of Allah said to him: "If you see me in this situation, do not greet me with the Salam, for if you do that I will not respond to you.'" (Using translation from Ibn Mājah 352)   

السيوطي:١٨٩٠a

"إذا رأيتنى على مثل هذه الحالة (يعني البول) فلا تسلم عليَّ فإنك إن فعلت ذلك لم أرد عليك".  

[هـ] ابن ماجة عن جابر أن رجلًا مر على النبيِّ ﷺ وَهُوَ يَبُولُ، فَسَلَّمَ عَلَيه فَقَال لَه: فذكره. وراه ابن ماجة أيضًا من حديث ابن عمر قال: مرّ رجل
suyuti:165-297bJābir > In a man Sallam > al-Nabi ﷺ / Yabūl > Dhā Raʾaytaniá > Hadhā Falā Tusallim ʿAla Faʾinnak In Sallamt ʿAlay
Request/Fix translation

  

السيوطي:١٦٥-٢٩٧b

"عَنْ جَابِرٍ قَالَ: إِنَّ رَجُلًا سَلَّمَ عَلَى النَّبِىِّ ﷺ وَهُوَ يَبُولُ، فَقَالَ: "إذَا رَأَيْتَنِى عَلَى هَذَا فَلاَ تُسَلِّمْ عَلَىَّ، فَإِنَّكَ إِنْ سَلَّمْتَ عَلَيَّ وَأَنَا عَلَى هَذَا لَمْ أرُدَّ عَلَيْكَ".  

ابن جرير