Abu Hurairah reported,

The Prophet ﷺ said, "When two men both dislike taking the oath, or both wish to take it, let them draw lots for it."Salama said that he was told, "Muamar informed us," and he said, "When two men are compelled to take the oath." He said this concerning an animal for which neither of them had any proof, so the Messenger of Allah ﷺ ordered them to draw lots for the oath.

Abu Dawud 3618

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا خالد بن الحارث عن سعيد بن أبي عروبة بإسناد ابن منهال مثله قال في دابة وليس لهما بينة فأمرهما رسول الله ﷺ أن يستهما على اليمين

أبو داود 3618صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Judgments
Chapter
Two men claiming something with neither having evidence
Numbering
Darussalam 3618
Abu Dawud 3618