Step 1: Understanding the Concept
On going down group 17, the size of the halogen increases, so the H-X bond length increases and the bond becomes weaker.
Step 2: Bond strengths
Bond enthalpy order: \(\text{H-F}>\text{H-Cl}>\text{H-Br}>\text{H-I}\), roughly 568, 431, 366 and 299 \(\text{kJ mol}^{-1}\).
Step 3: Compare the options
HI has the weakest bond, so it decomposes most easily on heating: \(2\text{HI}\rightarrow \text{H}_{2}+\text{I}_{2}\).
Final Answer:
Hydrogen iodide is thermally the least stable.
\[ \boxed{\text{(B) }\text{HI}} \]