Abu Hayyan narrates from his father that Sayyiduna Ali (may Allah be pleased with him) used to say: The prayer of the neighbour of the mosque is only in the mosque. He was asked: Who is the neighbour of the mosque? He said: The one who hears the sound of the adhan.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4943