Sunan Abi Dawud, Book 2, Hadith 116 (Abu Dawud 506)

Ibn Abi Laila said:

Prayer passed through three stages. And out people narrated to us that Messenger of Allah (May peace be upon him) said; it is to my liking that the prayer of Muslims or believers should be united (i.e., in congregation), so much so that I intended to send people to the houses to announce the time of prayer; and I also resolved that I should order people to stand at (the tops of) the forts and announce the time of the prayer for Muslims; and they struck the bell or were about to strike the bell (to announce the time for prayer). Then came a person from among the Ansar who said: Messenger of Allah, when I returned from you, as I saw your anxiety. I saw (in sleep) a person with two green clothes on him; he stood on the mosque and called (people) to prayer. He then sat down for a short while and stood up and pronounced in a like manner, except that he added: “The time for prayer has come”. If the people did not call me (a liar), and according to the version of Ibn al-Muthanna, if you did not call me (a liar). I would say that I was awake; I was awake; I was not asleep. The Messenger of Allah (May peace be upon him) said: According to the version of Ibn al-Muthanna, Allah has shown you a good (dream). But the version of ‘Amr does not have the words: Allah has shown you a good (dream). Then ask Bilal to pronounce the ADHAN (to call to the prayer). ‘Umar (in the meantime) said: I also had a dream like the one he had. But as he informed earlier. I was ashamed (to inform). Our people have narrated to us: when a person came (to the mosque during the prayer in congregation), he would...