Sunan Ibn Majah, Hadith 2044 ⓘ
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."
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ مِسْعَرٍ، عَنْ قَتَادَةَ، عَنْ زُرَارَةَ بْنِ أَوْفَى، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " إِنَّ اللَّهَ تَجَاوَزَ لأُمَّتِي عَمَّا تُوَسْوِسُ بِهِ صُدُورُهَا . مَا لَمْ تَعْمَلْ بِهِ أَوْ تَتَكَلَّمْ بِهِ وَمَا اسْتُكْرِهُوا عَلَيْهِ " .
also referenced under: Book 10, Hadith 2122 (In-Book) & Volume 3, Book 10, Hadith 2044 (DarusSalam)