During a chemical reaction, if the products have more chemical energy than the reactants,
energy is absorbed
Because energy is conserved in a chemical reaction i.e., the energy on both reactants and products side is equal, if, during a chemical reaction, the products formed have more chemical energy than the reactants, energy is absorbed on the reactants side. Or vice versa.