كتاب الرؤيا
42  
The Book of Dreams
(2)
Chapter: No One Should Speak Of How The Shaitan Toyed With Him In His Sleep
(2)
باب لاَ يُخْبِرُ بِتَلَعُّبِ الشَّيْطَانِ بِهِ فِي الْمَنَامِ ‏‏
Sahih Muslim 2268 e

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 2268e
In-book reference : Book 42, Hadith 31
USC-MSA web (English) reference : Book 29, Hadith 5642
  (deprecated numbering scheme)