(76) بَابُ الاِغْتِسَالِ إِذَا أَسْلَمَ، وَرَبْطِ الأَسِيرِ أَيْضًا فِي الْمَسْجِدِ
Narrated Abu Huraira:
The Prophet (ﷺ) sent some horsemen 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. The Prophet (ﷺ) came and ordered them to release him. He went to a (garden of) date-palms near the mosque, took a bath and entered the mosque again and said, "None has the right to be worshipped but Allah and Muhammad is His Apostle" (i.e. he embraced Islam).
Reference: Sahih al-Bukhari 462
In-book reference: Book 8, Hadith 110
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 1, Book 8, Hadith 451