Abdullah bin Abbas reported,

Two men brought a dispute before the Prophet ﷺ. The Prophet ﷺ asked the claimant for evidence, but he had none, so the defendant was asked to take an oath. He swore, "By Allah, besides whom there is no god."The Messenger of Allah ﷺ then said, "Yes, you did do it, but you have been forgiven on account of your sincere declaration that there is no god but Allah."

Abu Dawud 3275

Hasan

حدثنا موسى بن إسمعيل حدثنا حماد أخبرنا عطاء بن السائب عن أبي يحيى

عن ابن عباس

أن رجلين اختصما إلى النبي ﷺ فسأل النبي ﷺ الطالب البينة فلم تكن له بينة فاستحلف المطلوب فحلف بالله الذي لا إله إلا هو فقال رسول الله ﷺ بلى قد فعلت ولكن قد غفر لك بإخلاص قول لا إله إلا الله

أبو داود 3275حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Oaths and vows
Chapter
Regarding one who swears falsely deliberately
Numbering
Darussalam 3275
Abu Dawud 3275