The Messenger of Allah ﷺ said, "When the muezzin says, 'Allah is the greatest, Allah is the greatest,' and one of you says, 'Allah is the greatest, Allah is the greatest,' then he says, 'I bear witness that there is no god but Allah,' and the listener says, 'I bear witness that there is no god but Allah,' then he says, 'I bear witness that Muhammad is the Messenger of Allah,' and the listener says, 'I bear witness that Muhammad is the Messenger of Allah,' then he says, 'Come to prayer,' and the listener says, 'There is no power and no strength except through Allah,' then he says, 'Come to success,' and the listener says, 'There is no power and no strength except through Allah,' then he says, 'Allah is the greatest, Allah is the greatest,' and the listener says, 'Allah is the greatest, Allah is the greatest,' then he says, 'There is no god but Allah,' and the listener says, 'There is no god but Allah' from his heart, he will enter Paradise."
قال رسول الله ﷺ: إذا قال المؤذن: الله أكبر الله أكبر، فقال أحدكم: الله أكبر الله أكبر، ثم قال: أشهد أن لا إله إلا الله، قال: أشهد أن لا إله إلا الله، ثم قال: أشهد أن محمدا رسول الله، قال: أشهد أن محمدا رسول الله، ثم قال: حي على الصلاة، قال: لا حول ولا قوة إلا بالله، ثم قال: حي على الفلاح، قال: لا حول ولا قوة إلا بالله، ثم قال: الله أكبر الله أكبر، قال: الله أكبر الله أكبر، ثم قال: لا إله إلا الله، قال: لا إله إلا الله من قلبه دخل الجنة.
Muslim narrated it in "the Book of Prayer" (385), from Ishaq bin Mansur, who reported, "Abu Jafar Muhammad bin Jahdam Thaqafi informed us, Ismail bin Jafar narrated to us, from Umara bin Ghaziya, from Khubayb bin Abdul-Rahman bin Asaf, from Hafs bin Asim bin Umar bin Khattab, from his father, from his grandfather," who said, and he related it.