(96) باب فِي الرُّؤْيَا
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.
Reference: Sunan Abi Dawud 5019
In-book reference: Book 43, Hadith 247
English translation: Book 42, Hadith 5001