Abu Dawud
Oaths and Vows
Book Number: 015 / Hadith Number: 3269
Narated By Abdullah ibn Abbas : Two men brought their dispute to the Prophet (pbuh). The Prophet (pbuh) asked the plaintiff to produce evidence, but he had no evidence. So he asked the defendant to swear. He swore by Allah "There is no god but He."
The Apostle of Allah (pbuh) said: Yes, you have done it, but you have been forgiven for the sincerity of the statement: "There is no god but Allah."