The Messenger of Allah ﷺ said, "Allah has pardoned my community for whatever they say to themselves, as long as they do not act upon it or speak it out."
قال رسول الله ﷺ: إن الله تجاوز عن أمتي ما حدثت به أنفسها ما لم تعمل أو تتكلم.
Bukhari narrated it in the Book of Divorce (5269) and Muslim in the Book of Faith (333:127), both from the hadith of Hisham, who said, Qatada narrated to us, from Zurara bin Awfa, from Abu Hurairah, and he mentioned it.As for His saying, "Allah does not burden a soul beyond its capacity" [Baqarah 2:286], meaning beyond what it can bear, this verse abrogates His saying, "And whether you disclose what is within yourselves or conceal it, Allah will call you to account for it" [Baqarah 2:284], for the servant has no control over the whispers of his soul, so how could he be held accountable for them.It has been narrated from Ibn Abbas and others that this verse remains firmly established and is not abrogated. He said, His saying, "And whether you disclose what is within yourselves or conceal it, Allah will call you to account for it" [Baqarah 2:284], has not been abrogated. Rather, Allah , when He gathers all creatures together on the Day of Resurrection, will say, I will inform you of what you concealed within yourselves, things My angels themselves did not perceive. As for the believers, He will inform them and forgive them what their souls suggested to them, and this is His saying, "Allah will call you to account, then He will forgive whom He wills" [Baqarah 2:284], meaning He will inform you. As for the people of doubt and skepticism, He will inform them of the denial they concealed, and this is His saying, "Then He will forgive whom He wills and punish whom He wills" [Baqarah 2:284], and this is His saying, "But He will call you to account for what your hearts have earned" [Baqarah 2:225], referring to doubt and hypocrisy.Ibn Jareer Tabari narrated it (5/139) from Muthanna, who said, Abdullah bin Salih narrated to us, who said, Muawiya bin Salih narrated to me, from Ali bin Abu Talha, from Ibn Abbas, and he mentioned it.Abdullah bin Salih is Juhani, Abu Salih Misri, the scribe of Layth. His solitary narrations are not accepted because of his carelessness, but his book is sahih.Something similar has been narrated from a group of the Successors.As for His saying, "You are our protector" [Baqarah 2:286], meaning our guardian and helper, and upon You we rely. And as for His saying, "So grant us victory over the disbelieving people" [Baqarah 2:286], Muaz, whenever he finished reciting this surah, would say, Ameen.