ذِكْرُ الْإِبَاحَةِ لِلْمَرْءِ أَنْ يَعْرِضَ بِقَلْبِهِ شَيْءٌ مِنْ وَسَاوِسِ الشَّيْطَانِ، بَعْدَ أَنْ يَرُدَّهَا، مِنْ غَيْرِ اعْتِقَادِ الْقَلْبِ عَلَى مَا وَسْوَسَ إِلَيْهِ الشَّيْطَانُ
A man came to the Prophet ﷺ and said: Messenger of Allah! one of us has thoughts of such nature that he would rather be reduced to charcoal than speak about them. He said: Allah is Most Great, Allah is Most Great, Allah is Most Great. Praise be to Allah Who has reduced the guile of the devil to evil prompting. Ibn Qudamah said "reduced his matter" instead of "reduced his guile". Ibn Qudamah said "reduced his matter" instead of "reduced his guile". (Using translation from Abū Dāʾūd 5112)
جَاءَ رَجُلٌ إِلَى النَّبِيِّ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ أَحَدَنَا لَيَجِدُ فِي نَفْسِهِ الشَّيْءَ لَأَنْ يَكُونَ حُمَمَةً أَحَبُّ إِلَيْهِ مِنْ أَنْ يَتَكَلَّمَ بِهِ فَقَالَ ﷺ «اللَّهُ أَكْبَرُ الْحَمْدُ لِلَّهِ الَّذِي رَدَّ أَمْرَهُ إِلَى الْوَسْوَسَةِ»