Molecule is the general term used to describe any atoms that are connected by chemical bonds. Every combination of atoms is a molecule. A compound is a molecule made of atoms from different elements. All compounds are molecules, but not all molecules are compounds.
One example of a molecule is
(chlorine).
Examples of a compound is NaCl (sodium chloride) or
(water)