Sunan Ibn Majah
351
Sahih+3

It was narrated that Abu Hurairah said:"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

SahihAl-Albani
SahihMuhammad Fouad Abd al-Baqi