أَخْبَرَنَا أَبُو الْحُسَيْنِ بْنُ بِشْرَانَ ، أَخْبَرَنَا إِسْمَاعِيلُ بْنُ مُحَمَّدٍ الصَّفَّارُ ، حَدَّثَنَا أَحْمَدُ بْنُ مَنْصُورٍ الرَّمَادِيُّ ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ ، أَخْبَرَنَا مَعْمَرٌ ، عَنْ يُونُسَ بْنِ عُبَيْدٍ ، عَنْ إِبْرَاهِيمَ أَنَّهُ قَالَ : إِذَا رَأَى الرَّجُلُ رُؤْيَا يَكْرَهُهَا فَلْيَقُلْ " أَعُوذُ بِمَا عَاذَتْ بِهِ مَلَائِكَةُ اللَّهِ وَرُسُلُهُ مِنْ شَرِّ رُؤْيَايَ اللَّيْلَةَ أَنْ تَضُرَّنِي فِي دِينِي أَوْ دُنْيَايَ يَا رَحْمَنُ " .
وَرُوِّينَا عَنْ قَتَادَةَ قَالَ : كَتَبَ عُمَرُ بْنُ الْخَطَّابِ إِلَى أَبِي مُوسَى " وَإِذَا رَأَى رُؤْيَا فَقَصَّهَا عَلَى أَخِيهِ فَلْيَقُلْ خَيْرٌ لَنَا وَشَرٌّ لِأَعْدَائِنَا " .
Imam Ibrahim al-Nakha'i (may Allah have mercy on him) said: When a man sees a dream that he dislikes, let him say: "I seek refuge in that in which the angels of Allah and His messengers sought refuge, from the evil of my dream of tonight, lest it harm me in my religion or my worldly life, O Most Merciful!"
And it has been narrated to us from Imam Qatadah (may Allah have mercy on him) that he said: Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) wrote to Sayyiduna Abu Musa (may Allah be pleased with him): "And when a person sees a dream and relates it to his brother, let him say: 'May it be good for us and evil for our enemies.'"