The chemical equation for this reaction is:
$$Fe(s) + CuSO_4(aq) -> FeSO_4(aq) + Cu(s)$$
Here, iron (Fe) displaces copper (Cu) from the copper sulphate solution. As a result, the blue colour of the copper sulphate solution fades, and a green colour appears. This green colour is due to the formation of ferrous sulphate.
This displacement reaction occurs due to the difference in the reactivity of iron and copper. Iron is more reactive than copper, so it can replace copper from its compounds. This reaction is also an example of a redox reaction, where iron undergoes oxidation and copper undergoes reduction.