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 No. 3435
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih