The correct option is B Ca2+
Hydration energy is the amount of energy released upon the solvation of the ion in water.
Hydration energy depends on the charge on the ion and the ionic radius. Higher the charge and smaller the size, greater is the hydration energy. Since Mg2+ has a smaller size and same charge in comparison with Ca2+, it has a higher hydration energy than Ca2+ among the four.