Sayyiduna Abu Hurayrah (may Allah be pleased with him) said: The Prophet (peace and blessings be upon him) sent a cavalry detachment towards Najd, and they brought back a man from Banu Hanifah called Thumamah bin Uthal. They tied him to one of the pillars of the mosque.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4330