Language:
كتاب الشهادات
52  
Witnesses
(24)
Chapter: If (some people have to take an oath) and each of them wants to take it first
(24)
باب إِذَا تَسَارَعَ قَوْمٌ فِي الْيَمِينِ
Sahih al-Bukhari 2674

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.

حَدَّثَنَا إِسْحَاقُ بْنُ نَصْرٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ هَمَّامٍ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم عَرَضَ عَلَى قَوْمٍ الْيَمِينَ فَأَسْرَعُوا، فَأَمَرَ أَنْ يُسْهَمَ بَيْنَهُمْ فِي الْيَمِينِ أَيُّهُمْ يَحْلِفُ‏.‏
Reference : Sahih al-Bukhari 2674
In-book reference : Book 52, Hadith 36
USC-MSA web (English) reference : Vol. 3, Book 48, Hadith 840
  (deprecated numbering scheme)