There came to him (the Holy Prophet) a desert Arab and said: I saw in a dream that I had been beheaded and I had been following it (the severed head). Allah's Apostle ﷺ reprimanded him saying: Do not inform about the vain sporting of devil with you during the night. (Using translation from Muslim 2268c)
أَنَّ أَعْرَابِيًّا جَاءَ إِلَى النَّبِيِّ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ إِنِّي حَلَمْتُ أَنَّ رَأْسِي قُطِعَ وَأَنَا أَتْبَعُهُ فَزَجَرَهُ النَّبِيُّ ﷺ وَقَالَ «لَا تُخْبِرْ بِتَلَعُّبِ الشَّيْطَانِ بِكَ فِي الْمَنَامِ» على شرط البخاري ومسلم