Sunan Ibn Majah, Book 13, Hadith 39 (Ibn Majah 2346)

It was narrated from Abu Hurairah that :

two men disputed concerning a transaction, and neither of them had proof. The Messenger of Allah commanded them to draw lots as to which of them should swear an oath, whether they liked it or not.