Abu Hurairah reported the holy prophet ﷺ as saying: When two men dislike the oath or like it, lots will be cost about it. Salamah said on the authority of Mamar who said: when the two are compelled to take an oath.
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
Benefit: That is, when neither of the two wishes to take an oath, then the judge can decide that a lot should be drawn, and whoever's name is drawn will have to take the oath, or else he will withdraw.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 3617