Abu Hurairah reported,

The Prophet ﷺ said, "Allah has pardoned my community for what their souls whisper to them, as long as they do not act upon it or speak it."Qatada said, "If a man pronounces divorce within himself, it carries no weight."

Azami 215

Sahih

عن أبي هريرة

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

الأعظمي 215صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Faith in Allah عز وجل
Section
Repelling satanic whispers
Numbering
Jami al-Kamil 215 (2nd edition)
Azami 215