Nucleosynthesis
Hydrogen and helium came from the Big Bang; carbon, oxygen and iron were forged in stars. Most atoms in your body were made in stellar interiors.
The chemical elements were made in several places. In the first minutes after the Big Bang, protons and neutrons fused into hydrogen and helium, with about three quarters of the mass as hydrogen and a quarter as helium, plus traces of deuterium and lithium. Everything heavier came later, inside stars.
Stars fuse hydrogen into helium and then build carbon, oxygen and heavier nuclei, up to iron. Beyond iron, fusion no longer releases energy, so heavier elements are built by capturing neutrons, slowly in giant stars (the s-process) or rapidly in extreme events (the r-process). The 2017 neutron-star merger showed that such mergers produce r-process elements such as gold and platinum. The carbon in your cells and the iron in your blood were made in stars that lived and died before the Sun formed.