Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah has pardoned my community for what their souls whisper to them, so long as they do not speak of it or act upon it."

Muslim 331

Sahih

حدثنا سعيد بن منصور وقتيبة بن سعيد ومحمد بن عبيد الغبري واللفظ لسعيد قالوا حدثنا أبو عوانة عن قتادة عن زرارة بن أوفى

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

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

مسلم 331صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Faith
Chapter
Allah pardoning self-talk and passing thoughts in the heart when they do not settle
Numbering
Darussalam 331
Muslim 331