Hadithcore
Sahih al-Bukhari, 3175
sahih

Narrated Aisha:

Once the Prophet (ﷺ) was bewitched so that he began to imagine that he had done a thing which in fact he had not done.

حَدَّثَنِي مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا يَحْيَى، حَدَّثَنَا هِشَامٌ، قَالَ حَدَّثَنِي أَبِي، عَنْ عَائِشَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم سُحِرَ حَتَّى كَانَ يُخَيَّلُ إِلَيْهِ أَنَّهُ صَنَعَ شَيْئًا وَلَمْ يَصْنَعْهُ‏.‏

References2 variants
In-Book Reference
Book 58, Hadith 17
USC-MSA web (English) reference
Vol. 4, Book 53, Hadith 400 (deprecated numbering scheme)