Sahih Muslim , Book 29, Hadith 5642 (USC-MSA) ⓘ
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."
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو سَعِيدٍ الأَشَجُّ قَالاَ حَدَّثَنَا وَكِيعٌ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ جَاءَ رَجُلٌ إِلَى النَّبِيِّ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ رَأَيْتُ فِي الْمَنَامِ كَأَنَّ رَأْسِي قُطِعَ . قَالَ فَضَحِكَ النَّبِيُّ صلى الله عليه وسلم وَقَالَ " إِذَا لَعِبَ الشَّيْطَانُ بِأَحَدِكُمْ فِي مَنَامِهِ فَلاَ يُحَدِّثْ بِهِ النَّاسَ " . وَفِي رِوَايَةِ أَبِي بَكْرٍ " إِذَا لُعِبَ بِأَحَدِكُمْ " . وَلَمْ يَذْكُرِ الشَّيْطَانَ .
also referenced under: Book 42, Hadith 31 (In-Book) & Hadith 2268 (Reference)