Sahih al-Bukhari, Book 8, Hadith 117 (Bukhari 461)

Narrated Abu Huraira:

Allah's Messenger (ﷺ) sent some horse men to Najd and they brought a man called Thumama bin Uthal from Bani Hanifa. They fastened him to one of the pillars of the mosque.