Hadithcore
Mishkat al-Masabih, 63
graded· Zubair `Aliza'i

Abu Huraira reported God’s messenger as saying, “God forgives my people the evil promptings which arise within them so long as they do not act upon them or speak about them.” (Bukhari and Muslim.)

عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ اللَّهَ تَعَالَى تَجَاوَزَ عَنْ أُمَّتِي مَا وَسْوَسَتْ بِهِ صُدُورُهَا مَا لم تعْمل بِهِ أَو تَتَكَلَّم»

References1 variant
In-Book Reference
Book 1, Hadith 57