ENOfficial
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.)
Source: sunnah.com
Other translations
Arabic
عَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ اللَّهَ تَعَالَى تَجَاوَزَ عَنْ أُمَّتِي مَا وَسْوَسَتْ بِهِ صُدُورُهَا مَا لم تعْمل بِهِ أَو تَتَكَلَّم»
sunnah.com