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. (Using translation from Bukhārī 2674)
أَنَّ النَّبِيَّ ﷺ عَرَضَ عَلَى قَوْمٍ الْيَمِينَ فَأَسْرَعَ الْفَرِيقَانِ جَمِيعًا عَلَى الْيَمِينِ «فَأَمَرَ النَّبِيُّ ﷺ أَنْ يُسْهَمَ بَيْنَهُمْ فِي الْيَمِينِ أَيُّهُمْ يَحْلِفُ»