Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "If two people are made to take an oath, or they both wish to take it, then draw lots between them."
(b) In the narration of Ahmad: "When two men are made to take an oath, or they wish to take it, let them draw lots for it."
(c) That is, and Allah knows best: whether the two dislike the oath or desire it, in both cases lots are drawn between them.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الدعوى والبينات / 21218