Sahih al-Bukhari, Book 52, Hadith 36 (Bukhari 2567)

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.