Allah's Messenger (ﷺ) sent some horse men to Najd and they brought a man called Thumama…

Sahih al-Bukhari Book 8 Hadith 117

Sahih al-Bukhari #469

Prayers (Salat) 8:117

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.

Chapter: The entering of a pagan in the mosque

Grade: Sahih