Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ said, "Whoever says, when he hears the caller to prayer, 'I too bear witness that there is no god but Allah alone, with no partner, and I bear witness that Muhammad is His servant and Messenger. I am content with Allah as my Lord, with Islam as my religion, and with Muhammad as my Prophet,' his sins will be forgiven."

Ibn Majah 721

Sahih

حدثنا محمد بن رمح المصرى أنبأنا الليث بن سعد عن الحكيم بن عبد الله بن قيس عن عامر بن سعد بن أبي وقاص

عن سعد بن أبي وقاص

عن رسول الله ﷺ أنه قال من قال حين يسمع المؤذن وأنا أشهد أن لا إله إلا الله وحده لا شريك له وأشهد أن محمدا عبده ورسوله رضيت بالله ربا وبالإسلام دينا وبمحمد نبيا غفر له ذنبه

ابن ماجه 721صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Adhan and the sunnah regarding it
Chapter
What is said when the muezzin calls the adhan
Numbering
Darussalam 721
Ibn Majah 721