A man greeted the Prophet ﷺ while he was urinating, and he did not return it, meaning the greeting.Muhammad bin Yahya Nisaburi narrated to us, Muhammad bin Yusuf narrated to us, from Sufyan, from Dahhak, with this chain of transmission, something similar.
حدثنا محمد بن بشار ونصر بن علي قالا حدثنا أبو أحمد عن سفيان عن الضحاك بن عثمان عن نافع
أن رجلا سلم على النبي ﷺ وهو يبول فلم يرد عليه يعني السلام حدثنا محمد بن يحيى النيسابوري حدثنا محمد بن يوسف عن سفيان عن الضحاك بهذا الإسناد نحوه
Muslim also reported it, Menstruation, chapter on tayammum, no. 115/370, from the hadith of Sufyan Thawri with the same chain, and it has already passed at 90.There are also narrations on this topic from Alqama bin Fughwaa [Tahawi in Maani Athar, 45/1], Jabir [Ibn Majah, no. 352], Bara [Majma al-Zawaid, 276/1], and Muhajir bin Qunfudh [Abu Dawud, no. 17].