Abu Hayyan narrates from his father that Sayyiduna Ali (may Allah be pleased with him) said: "The prayer of the neighbour of the mosque is only in the mosque." It was asked: Who is the neighbour of the mosque? He said: "Whoever hears the call of the mu'adhdhin."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5591