´It was narrated from Abu Hurairah that the Prophet said:` "Allah, the Most High, has forgiven my Ummah for whatever enters the mind, so long as it is not spoken of or put into action."
Hadith ReferenceSunan an-Nasa'i / The Book of Divorce / Hadith: 3465