Sayyiduna Abu Hurayrah (may Allah be pleased with him) said that the Prophet (peace and blessings be upon him) offered the oath to a group of people, and each of them was ready to take it. So he (peace and blessings be upon him) said: "Draw lots as to which of them shall swear the oath."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الدعوى والبينات / 21217