Hadith 1:67
Isnād Sahīh (Zubair `Aliza'i)
Ibn ‘Abbas told how a man came to the Prophet and said, "I have thoughts of such a nature that I would rather be reduced to charcoal than speak about them.” He replied, ‘‘Praise be to God who has reduced [the devil] to no more than evil prompting!” Abu Dawud transmitted it. Or [his thoughts].
عَنِ ابْنِ عَبَّاسٍ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ جَاءَهُ رَجُلٌ فَقَالَ: إِنِّي أُحَدِّثُ نَفْسِي بِالشَّيْءِ لَأَنْ أَكُونَ حُمَمَةً أَحَبُّ إِلَيَّ مِنْ أَنْ أَتَكَلَّمَ بِهِ. قَالَ: «الْحَمْدُ لِلَّهِ الَّذِي رَدَّ أَمْرَهُ إِلَى الْوَسْوَسَةِ» . رَوَاهُ أَبُو دَاوُد
Original Reference: Mishkat al-Masabih 73