It was narrated from Abu Hurairah that the:Messenger of Allah (ﷺ) said : "Allah has forgiven my nation for the evil suggestions of their hearts, so long as they do not act upon it or speak of it, and for what they are forced to do
Hadith No. 2044
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Shadh
Shuaib Al Arnaut:
Sahih
Zubair Ali Zai:
Sahih - Agreed Upon