Abu Hurairah reported the Prophet ﷺ as saying “Allah has ignored for my community what comes to their mind, so long as they do not act or pronounce words to that effect.” (Using translation from Abū Dāʾūd 2209)
"إِنَّ الله تجاوزَ لأُمَّتي عَمَّا حَدَّثت به أنْفُسها مَا لمْ تتكلَّمْ بِهْ، أَو تعْمَلْ بِه".