´It was narrated from Abu Hurairah that:` "a man entered the masjid, and the Messenger of Allah(ﷺ) was sitting in a corner of the mosque. He prayed, then he came and greeted him with Salam(peace), and he said: 'Wa 'alaikassalm."
Hadith Referenceسنن ابن ماجه / كتاب الأدب / 3695
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:متفق عليه
´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."
Maulana Ataullah Sajid
Commentary: (1) The chain of narration of this hadith is weak; however, an incident of this type is also narrated through another authentic chain. In Sahih al-Bukhari, it is narrated from Abu Juhaym ibn Harith radi Allahu anhu that he said: The Prophet sallallahu alayhi wa sallam was coming from the direction of Bi’r Jamal when a man met him. He greeted (with salam), so the Prophet sallallahu alayhi wa sallam, before replying to the greeting, struck his hand on the wall and wiped his face and hands (performed tayammum), then replied to the greeting. (Sahih al-Bukhari, Kitab al-Tayammum, Chapter: Tayammum in Residence if Water is Not Found and One Fears Missing the Prayer, Hadith: 337)
(2) It is permissible to delay replying to a greeting due to an excuse or preoccupation.
(3) Imam al-Bukhari rahimahullah has deduced from the aforementioned incident that travel is not a condition for tayammum. From the apparent wording of Surah al-Ma’idah, verse 6, it seems that tayammum can only be performed in the state of travel. From this hadith, it is understood that the verse mentions those circumstances in which, generally, the need for tayammum may arise; it does not mean that tayammum is not permissible outside of those circumstances.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 351