This is a reversible process – the inverse process is called pair creation – in which the rest mass of particles is created from energy of two (or more) annihilating photons.
What is the process in which the rest mass of particles is created from energy of two or more annihilating photons?
pair creation