It is narrated from Sayyiduna Muhajir bin Qunfudh bin Umar bin Jud‘an (may Allah be pleased with him) that he came to the Prophet Muhammad (peace and blessings be upon him) while he was performing ablution. He greeted the Prophet with salam, but the Messenger of Allah (peace and blessings be upon him) did not reply to his salam until he had completed his ablution (and then replied to the salam). He apologized for this and said: "I disliked mentioning Allah without being in a state of purity." Hasan al-Basri (may Allah have mercy on him) used to act according to this hadith, that is, he would reply to salam only when in a state of ablution.
Explanation & Benefits
Shaykh Muhammad Farooq Rafi
Benefits:
This hadith is proof that remembering Allah Ta'ala and returning the greeting of salam and supplication while in a state of ablution (wudu) is a superior deed.
But it is not a forbidden act (otherwise), because the next hadith is proof that observing remembrance (dhikr) of Allah both with and without ablution is permissible.
Source: Sahih Ibn Khuzaymah: Commentary by Muhammad Farooq Rafee, Page: 206