The Messenger of Allah ﷺ said, "Whenever a servant says 'There is no god but Allah' with sincerity, the gates of heaven are opened for it until it reaches the Throne, so long as he avoids the major sins."
حدثنا الحسين بن علي بن يزيد الصدائي البغدادي حدثنا الوليد بن القاسم بن الوليد الهمداني عن يزيد بن كيسان عن أبي حازم
قال رسول الله ﷺ ما قال عبد لا إله إلا الله قط مخلصا إلا فتحت له أبواب السماء حتى تفضي إلى العرش ما اجتنب الكبائر
Its isnad is hasan. Nasai also narrated it in Amal al-Yawm wal-Layla, no. 833, from Husayn bin Ali through the same chain. Abu Hazim is Salman.