Sunan Abi Dawud, Book 41, Hadith 4999 (USC-MSA)

Abu Hurairah reported the Prophet (May peace be upon him) as saying: When the time draws near, a believer’s vision can hardly be false. The truer one of them is in his speech, the truer he is in his vision. Visions are of three types: Good visions are glad tidings from Allah, a terrifying vision caused by the devil, and the ideas which come from within a man. So when one sees anything he dislikes, he should get up and pray, and should not tell it to the people. He said : I like a fetter and dislike a shackle on the neck; a fetter indicates being firmly established in religion. Abu Dawud said : “when the time draws near” means that when the day and night are equal.

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا عَبْدُ الْوَهَّابِ، عَنْ أَيُّوبَ، عَنْ مُحَمَّدٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏"‏ إِذَا اقْتَرَبَ الزَّمَانُ لَمْ تَكَدْ رُؤْيَا الْمُؤْمِنِ أَنْ تَكْذِبَ وَأَصْدَقُهُمْ رُؤْيَا أَصْدَقُهُمْ حَدِيثًا وَالرُّؤْيَا ثَلاَثٌ فَالرُّؤْيَا الصَّالِحَةُ بُشْرَى مِنَ اللَّهِ وَالرُّؤْيَا تَحْزِينٌ مِنَ الشَّيْطَانِ وَرُؤْيَا مِمَّا يُحَدِّثُ بِهِ الْمَرْءُ نَفْسَهُ فَإِذَا رَأَى أَحَدُكُمْ مَا يَكْرَهُ فَلْيَقُمْ فَلْيُصَلِّ وَلاَ يُحَدِّثْ بِهَا النَّاسَ ‏"‏ ‏.‏ قَالَ ‏"‏ وَأُحِبُّ الْقَيْدَ وَأَكْرَهُ الْغُلَّ وَالْقَيْدُ ثَبَاتٌ فِي الدِّينِ ‏"‏ ‏.‏ قَالَ أَبُو دَاوُدَ ‏"‏ إِذَا اقْتَرَبَ الزَّمَانُ ‏"‏ ‏.‏ يَعْنِي إِذَا اقْتَرَبَ اللَّيْلُ وَالنَّهَارُ يَعْنِي يَسْتَوِيَانِ ‏.‏

sunnah.com