Hadith 2281
وَعَنِ ابْنِ عَبَّاسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «الشَّيْطَانُ جَاثِمٌ عَلَى قَلْبِ ابْنِ آدَمَ فَإِذَا ذَكَرَ اللَّهَ خَنَسَ وَإِذا غفَلَ وسوس» . رَوَاهُ البُخَارِيّ تَعْلِيقا
Ibn ‘Abbas reported God’s messenger as saying, “The devil is couching at the heart of the son of Adam. When he mentions God he withdraws, but when he is neglectful he makes evil suggestions.” Bukhari mentioned it in a note.