Abu Hurairah reported,

The Messenger of Allah ﷺ said, "Allah has pardoned my community for whatever crosses their minds, so long as they do not speak of it or act upon it."

Tirmidhi 1183

Sahih

حدثنا قتيبة حدثنا أبو عوانة عن قتادة عن زرارة بن أوفى

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

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

الترمذي 1183صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Divorce and lian
Chapter
Whoever thinks to himself about divorcing his wife
Numbering
Darussalam 1183
Tirmidhi 1183