The correct statement is: Energy is released by the formation of chemical bonds, and energy is absorbed when the bonds are broken.
During a chemical reaction, if the total energy of the products is lower than that of the reactants, energy is released (exothermic reaction). Conversely, if the total energy of the products is higher, energy must be absorbed (endothermic reaction) to break the bonds in the reactants.