God overlooks evil temptations so long as they are not exposed or acted upon
The Prophet ﷺ said, "Allah has overlooked for me for my Ummah what whispers or tempts their hearts, unless they put it to action or utter it."
قَالَ النَّبِيُّ ﷺ إِنَّ اللَّهَ تَجَاوَزَ لِي عَنْ أُمَّتِي مَا وَسْوَسَتْ بِهِ صُدُورُهَا مَا لَمْ تَعْمَلْ أَوْ تَكَلَّمْ