Al-Muhajir ibn Qunfudh reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, I dislike to mention the name of Allah unless I am in a state of purity.”
Source: Sunan Abī Dāwūd 17
Grade: Sahih (authentic) according to Al-Nawawi
Al-Shawkani said, “It is recommended to be in state of purification for the remembrance of Allah Almighty and there is a concession in leaving it… This tradition indicates that it is discouraged to mention Allah when in a state of minor impurity.”
Source: Nayl al-Awṭār 275
عَنِ الْمُهَاجِرِ بْنِ قُنْفُذِ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنِّي كَرِهْتُ أَنْ أَذْكُرَ اللَّهَ إِلَّا عَلَى طُهْرٍ
17 سنن أبي داود كتاب الطهارة باب أيرد السلام وهو يبول
3/105 المحدث النووي خلاصة حكم المحدث : صحيح في المجموع
وقال الشوكاني اسْتِحْبَابِ الطَّهَارَةِ لِذِكْرِ اللَّهِ عَزَّ وَجَلَّ وَالرُّخْصَةِ فِي تَرْكِهِ … وَهُوَ يَدُلُّ عَلَى كَرَاهَةِ الذِّكْرِ لِلْمُحْدِثِ حَدَثًا أَصْغَرَ
275 نيل الأوطار