Narrated Abu Huraira:The Prophet (ﷺ) asked some people to take an oath, and they hurried for it. The Prophet (ﷺ) ordered that lots should be drawn amongst them as to who would take an oath first
Hadith No. 2674
Sahih al Bukhari