A person happened to pass by the Messenger of Allah (ﷺ) when he was making water and saluted him, but he did not respond to his salutation.
Sahih Muslim Book 3, Hadith 144