The Prophet (SAW) overpowered a Jinn, but decided not to tie him up to a pillar due to the dua of Sulaiman (AS) in 38:35.
Sulaiman (AS) was given command over the Jinn by Allah.
And (we gave him) [also] the devils [of jinn] - every builder and diver
And others bound together in shackles. (38:37-38)
He made the following dua:
He said, "My Lord, ...