What to do after a pleasant dream or a nightmare

Reading settings
إِذَا رَأَى أَحَدٌ رُؤْيَا يُحِبُّهَا فَلْيَحْمَدِ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِهَا.
If someone has a dream they like, let them praise Allah for it and tell others about it.
Explanation & source

تخريج الذكر

في صحيح البخاري حمد الله على الرؤيا الحسنة والتحدث بها، وفي صحيح مسلم أن يُحدِّث بها من يحب.

إِذَا رَأَى أَحَدٌ مَا يَكْرَهُ، فَلْيَتْفِلْ عَنْ يَسَارِهِ ثَلَاثًا، وَلْيَتَعَوَّذْ بِاللَّهِ مِنْ شَرِّ الشَّيْطَانِ وَشَرِّهَا، وَلَا يُحَدِّثْ بِهَا أَحَدًا.
If someone sees something they dislike in a dream, let them spit lightly to their left three times, seek refuge in Allah from the evil of Satan and of the dream, and tell no one about it.
Explanation & source

تخريج الذكر

من إرشاده ﷺ لمن رأى في منامه ما يكره.

إِذَا رَأَى أَحَدٌ مَا يَكْرَهُ، فَلْيَقُمْ فَلْيُصَلِّ، وَلَا يُحَدِّثْ بِهَا النَّاسَ.
If someone sees something they dislike in a dream, let them get up and pray, and refrain from telling people about it.
Explanation & source

تخريج الذكر

إرشاد نبوي لمن رأى ما يكره؛ وله أن يعمل بما ورد في الرواية الأخرى من الاستعاذة والتفل.

وَلْيَتَحَوَّلْ عَنْ جَنْبِهِ الَّذِي كَانَ عَلَيْهِ.
Let them turn over from the side they were lying on.
Explanation & source

تخريج الذكر

جاء هذا الإرشاد لمن رأى ما يكره، مع التفل عن اليسار والاستعاذة من الشيطان ثلاثًا.