From Sahih Bukhari (Hadith 2423):
Narrated Abu Huraira:The Prophet (ﷺ) sent some horsemen to Najd and they arrested and brought a man called Thumama bin Uthal from the tribe of Bani Hanifa, and they fastened him to one of the pillars of the Mosque
Reference: Bukhari 2423