(19) باب السَّهْوِ فِي الصَّلاَةِ وَالسُّجُودِ لَهُ
Abu Huraira reported:
The Messenger of Allah (ﷺ) said: The devil takes to his heels breaking wind when the prayer begins. and the rest is the same but with this addition:" He (the devil) makes him think of pleasant things (or things productive of enjoyment) and of the things wished for, and reminds him of such needs which he had forgotten."
Reference: Sahih Muslim 389 i
In-book reference: Book 5, Hadith 106
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1162