Compound for which $\Delta H_f$ is negative is more stable than the compound for which $\Delta H_f$ is positive. In other words, exothermic compounds are more stable than endothermic compounds.
Further, for exothermic compound, more the heat evolved during the formation of a compound from its elements, more stable it is. As such HF with
$\Delta H_f$ = -161 kJ is more stable than HC1 with
$\Delta H_f$ = -92 kJ