Fe (Z = 26)
Fe → Fe2+ + 2e-
Fe → Fe3+ + 3e-
Fe2+ [Number of electrons 24]
Electronic configuration = [Ar]3d6
Fe3+ [Number of electrons 23]
Electronic configuration = [Ar]3d5
Among Fe3+ and Fe2+ , Fe3+ is more stable due to half filled d-orbital. This can be explained by Aufbau principle. Half filled and completely filled d-orbitals are more stable than partially filled d-orbitals. So Fe3+ is more stable than Fe2+.