Abu Hurairah reported,

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."

Azami 12064

Sahih

عن أبي هريرة قال

قال رسول الله ﷺ: إن الله تجاوز عن أمتي ما حدثت به أنفسها ما لم تعمل أو تتكلم.

الأعظمي 12064صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "To Allah belongs whatever is in the heavens and whatever is in the earth. Whether you reveal what is in yourselves or conceal it, Allah will bring you to account for it. Then He will forgive whom He wills and punish whom He wills, and Allah is over all things competent. The Messenger has believed in what was revealed to him from his Lord, and so have the believers. All of them have believed in Allah and His angels and His books and His messengers, saying, We make no distinction between any of His messengers. And they say, We hear and we obey. Grant us Your forgiveness, our Lord, and to You is the destination. Allah does not burden a soul beyond its capacity. It will have the reward of what good it has earned, and it will bear the consequence of what evil it has earned. Our Lord, do not impose blame upon us if we forget or make a mistake. Our Lord, do not lay upon us a burden like that which You laid upon those before us. Our Lord, do not burden us with that which we have no ability to bear. And pardon us, and forgive us, and have mercy upon us. You are our Protector, so give us victory over the disbelieving people"
Numbering
Jami al-Kamil 12064 (2nd edition)
Azami 12064