It is narrated from Sayyiduna Abu Sa'id Al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "When you hear the call to prayer (Adhan), then say what the caller (Mu'adhdhin) says."
Hadith Referenceالسنن المأثورة / باب ما جاء في النداء في السفر / 39
Hadith Takhrijصحیح بخاری، الاذان، باب ما يقول اذا سمع المنادى، رقم : 611؛ صحیح مسلم، الصلاة، باب استحباب القول مثل قول المؤذن لمن سمعه، رقم : 383۔