Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ said, "Whoever says when he hears the muezzin, '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 Muhammad as my Messenger, and with Islam as my religion,' will have his sins forgiven."

Abu Dawud 525

Sahih

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

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

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

أبو داود 525صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
What to say when hearing the muezzin
Numbering
Darussalam 525
Abu Dawud 525