(2) باب لاَ يُخْبِرُ بِتَلَعُّبِ الشَّيْطَانِ بِهِ فِي الْمَنَامِ
Jabir reported that a person came to Allah's Apostle (ﷺ) and said:
Allah's Messenger, I have seen in the state of sleep as if my head had been cut off. Thereupon Allah's Apostle (ﷺ) laughed and said: When the satan plays with any one of you in the state of sleep, do not mention it to the people; and in the hadith transmitted by Abu Bakr (the words are): "If one of you is played with, and he did not make any mention of the word: "Satan."
Reference: Sahih Muslim 2268 e
In-book reference: Book 42, Hadith 31
USC-MSA web (English) reference(deprecated numbering scheme): Book 29, Hadith 5642