ʿAbd Allah ibn ʿUmar used to teach these words to every one of his children who could understand them, and for those who could not he would write them down and fasten them on the child. Abu Dawud and al-Tirmidhi recorded this report, and al-Tirmidhi classified it as sound (ḥasan).
Concerning what a person should do after seeing a dream:
Abu Salama ibn ʿAbd al-Raḥmān said, “I heard Abu Qatadah ibn Ribʿī say, ‘I heard the Messenger of Allah, peace and blessings be upon him, say: “The true vision, ruʾyā, is from Allah, whereas the disturbing dream, ḥulm, is from Satan. When any of you sees something he dislikes, let him blow lightly to his left three times as soon as he awakens, and let him seek refuge in Allah from its evil; then, by Allah’s permission, it will not harm him.” ’
Abu Salama continued, ‘A dream used to weigh on me more heavily than a mountain, but after hearing this hadith I no longer paid any attention to it.’ In another wording he said, ‘I would see a dream that troubled me until I heard Abu Qatadah say: “I too would see a dream that made me ill until I heard the Messenger of Allah, peace and blessings be upon him, say: ‘A righteous vision is from Allah. If one of you sees something he likes, let him tell it only to someone he loves; but if he sees something he dislikes, let him not relate it to anyone. Instead, let him blow lightly to his left three times and seek refuge in Allah, the Most High, from Satan and from the evil of what he has seen, and it will not harm him.’ ” ’ ”
The two Shaykhs (al-Bukhari and Muslim) agreed upon this narration.
Muslim also transmitted, on the authority of Jabir (may Allah be pleased with him), that the Messenger of Allah, peace and blessings be upon him, said: “…”