It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both): "Two men brought their dispute to the Prophet (peace and blessings be upon him). The Messenger of Allah (peace and blessings be upon him) asked the claimant for evidence, but he had no evidence, so he (peace and blessings be upon him) had the defendant take an oath, and he swore by Allah, besides whom there is no god worthy of worship. At this the Messenger of Allah (peace and blessings be upon him) said: 'You certainly did (this deed), but you have been forgiven by virtue of your saying, with sincerity, La ilaha illallah (There is no god worthy of worship except Allah).'" Imam Ahmad bin Hanbal also recorded it in the same way, with the chain of Hasan bin Musa from Hammad bin Salamah.