Hadithcore
Sahih al-Bukhari, 3284
sahih

Narrated Abu Huraira:

The Prophet (ﷺ) offered a prayer, and (after finishing) he said, "Satan came in front of me trying persistently to divert my attention from the prayer, but Allah gave me the strength to over-power him."

حَدَّثَنَا مَحْمُودٌ، حَدَّثَنَا شَبَابَةُ، حَدَّثَنَا شُعْبَةُ، عَنْ مُحَمَّدِ بْنِ زِيَادٍ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ عَنِ النَّبِيِّ صلى الله عليه وسلم أَنَّهُ صَلَّى صَلاَةً فَقَالَ ‏

‏ إِنَّ الشَّيْطَانَ عَرَضَ لِي، فَشَدَّ عَلَىَّ يَقْطَعُ الصَّلاَةَ عَلَىَّ، فَأَمْكَنَنِي اللَّهُ مِنْهُ ‏

‏‏.‏ فَذَكَرَهُ‏.‏

References2 variants
In-Book Reference
Book 59, Hadith 93
USC-MSA web (English) reference
Vol. 4, Book 54, Hadith 504 (deprecated numbering scheme)