It has nothing to do with the issue of dream...
It has nothing to do with the issue of dream, since those narrating the dream know it as a happening in Medina, long after the Prophet’s Hijra (migration to Medina) when Islam had been strengthened, prayer and fasting and zakat (Islamic statutory levy) had been religiously established, the doctrinal provisions were established and the permissible and prohibited issues were set up.[^9] This is while the Prophet’s Ascension had occurred before Hijra and from Masjid Al-Haram (The Sacred Mosque); therefore, as this tradition and other similar ones stipulate, Adhan had been religiously set up many years before Hijra.[^10] Ibn Hajar Asqalani, in his exposition of Sahih Bukhari , and also Halabi, in his Sirah , acknowledge this stipulation saying: “There are traditions stipulating that the Adhan was set up before Hijra in Mecca.”[^11] The only objection Ibn Hajar raises to the tradition quoted by Ibn Umar is due to the existence of Talha Ibn Zayd in its document.
He says about Talha, “He is denied.” But if one studies the documents of traditions supporting the dream (as the origin of Adhan ), people would be seen who are not so much different from Talha Ibn Zayd, if not worse than him. Hence, there is no sense in preferring the traditions about dream. عَن أنَسٍ أنَّ جِبرَئيلَ أمَرَ النّبيَّ صلّى اللهُ عليهِ وسلَّم بالأذانِ حينَ فُرِضَتِ الصَّلاةُ.