THE RELATIONS. “According to the theory of special relativity, any particle in nature obeys the relativistic energy equation. This relation can also be applied to a photon. The photon’s energy is the same as that of a light quantum of frequency f, which we introduced to explain the photoelectric effect.”
https://opentextbc.ca/universityphysicsv3openstax/chapter/the-compton-effect/#:~:text=The%20Compton%20effect%20is%20the,wavelength%20of%20the%20incident%20radiation