The Prophet ﷺ consulted the people about how to summon them to prayer. They suggested a horn, but he disliked it because of its association with the Jews. They then suggested a bell, but he disliked it because of its association with the Christians.That night, the call to prayer was shown in a dream to a man from the Ansar named Abdullah bin Zayd, and also to Umar bin Khattab. The man from the Ansar came knocking at the door of the Messenger of Allah ﷺ during the night, and the Messenger of Allah ﷺ instructed Bilal to make the call accordingly, so he called the adhan.Zuhri said that Bilal added in the call for the dawn prayer, "Prayer is better than sleep," and the Messenger of Allah ﷺ approved it.Umar said, "Messenger of Allah, I saw the same vision he saw, but he came to you before me."
حدثنا محمد بن خالد بن عبد الله الواسطي حدثنا أبي عن عبد الرحمن بن إسحق عن الزهري
أن النبي ﷺ استشار الناس لما يهمهم إلى الصلاة فذكروا البوق فكرهه من أجل اليهود ثم ذكروا الناقوس فكرهه من أجل النصارى فأري النداء تلك الليلة رجل من الأنصار يقال له عبد الله بن زيد وعمر بن الخطاب فطرق الأنصاري رسول الله ﷺ ليلا فأمر رسول الله ﷺ بلالا به فأذن قال الزهري وزاد بلال في نداء صلاة الغداة الصلاة خير من النوم فأقرها رسول الله ﷺ قال عمر يا رسول الله قد رأيت مثل الذي رأى ولكنه سبقني
Its isnad is very daif. Zuhri narrated with "an" phrasing, and he is mentioned among the mudallisin (third category). His student Abbad Madani is hasan al-hadith, while Muhammad bin Khalid is very daif, accused of lying as stated in Tahdheeb and elsewhere. Part of the hadith has supporting evidence in Bukhari, no. 603, 406, and Muslim, no. 377, 378, and others.