إِذِ اللَّهُ بِرَأْفَتِهِ وَرَحْمَتِهِ قَدْ تَجَاوَزَ لَأُمَّةِ مُحَمَّدٍ عَمَّا حَدَّثَتْ بِهِ أَنْفُسَهَا
Because Allah Almighty, out of His kindness and mercy, has forgiven the inner thoughts of the heart of the Ummah of Muhammad.
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, Allah the Exalted has forgiven my Ummah for what occurs in their hearts (thoughts and whispers that come to the heart) as long as they do not speak of them or act upon them."
Explanation & Benefits
Shaykh Muhammad Farooq Rafi
Benefits:
➊ This hadith is evidence that mere whisperings and thoughts arising in the heart do not invalidate the prayer; however, if words in accordance with those thoughts are uttered by the tongue, the prayer becomes invalid.
➋ Whisperings and thoughts cause a deficiency in the prayer, because they are contrary to the humility, submission and concentration that are intended in the prayer.
Source: Sahih Ibn Khuzaymah: Commentary by Muhammad Farooq Rafee, Page: 898