An annihilation is between a particle-antiparticle pair, which both have a rest energy E0. Both photons need to have a minimum energy, Emin, which when added together equals at least 2E0 for energy to be conserved in this interaction. So 2Emin = 2E0 and so Emin= hfmin=E0