ENOfficial
It was narrated that Ibn 'Umar said: "A man passed by the Prophet (ﷺ) while he was urinating and greeted him with the Salam, and he did not return the greeting."
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ، وَالْحُسَيْنُ بْنُ أَبِي السَّرِيِّ الْعَسْقَلاَنِيُّ، قَالاَ حَدَّثَنَا أَبُو دَاوُدَ، عَنْ سُفْيَانَ، عَنِ الضَّحَّاكِ بْنِ عُثْمَانَ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، قَالَ مَرَّ رَجُلٌ عَلَى النَّبِيِّ ـ صلى الله عليه وسلم ـ وَهُوَ يَبُولُ فَسَلَّمَ عَلَيْهِ فَلَمْ يَرُدَّ عَلَيْهِ .
sunnah.com