Abu Hurairah reported,

The Messenger of Allah ﷺ sent a cavalry unit toward Najd, and they brought back a man from Banu Hanifa called Thumama bin Uthal, the chief of the people of Yamama. They tied him to one of the pillars of the mosque, and the Messenger of Allah ﷺ went out to him.He asked, "What do you have to say, Thumama?"Thumama replied, "I have good, Muhammad."He then mentioned the rest of the hadith. The Messenger of Allah ﷺ said, "Release Thumama."

Bukhari 2422

Sahih

حدثنا قتيبة حدثنا الليث عن سعيد بن أبي سعيد أنه سمع

أبا هريرة رضي الله عنهما يقول

بعث رسول الله ﷺ خيلا قبل نجد فجاءت برجل من بني حنيفة يقال له ثمامة بن أثال سيد أهل اليمامة فربطوه بسارية من سواري المسجد فخرج إليه رسول الله ﷺ قال ما عندك يا ثمامة قال عندي يا محمد خير فذكر الحديث قال أطلقوا ثمامة

البخاري 2422صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Disputes
Chapter
Security against one whose harm is feared
Numbering
Darussalam 2422
Bukhari 2422