The stability of a compound is NOT related with its heat of formation (in case you meant the heat of formation).
For instance cubane is stable. Or benzene. And many more.
As opposed, nitroglycerine goes bang despite its strong negative heat of formation.
By the way, a compound that decomposes doesn't produce the elements usually, but other compounds, so the heat of formation from the element is just irrelevant.