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."
English reference: Vol. 1, Book 1, Hadith 353
Arabic reference: Book 1, Hadith 381
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.