The simple pendulum at angular amplitude θn​ is shown in figure.
Maximum tension in the string is Tmax​=mg+lmv2​…(i)
When bob of the pendulum comes form A to B, it covers a vertical distance h ∴cosθ=hl−h​ ⇒h=l(1−cosθ0​)…(ii)
Also, during B to A, potential energy of bob converts into kinetic energy, i.e. mgh=21​mv2 ∴v=2gh​…(iii)
Thus, using Eqs. (i), (ii) and (iii), we obtain Tmax​=mg+l2mg​l(1−cosθ0​) =mg+2mg[1−1+2θ02​​] =mg(1+θ02​)