The hydration energy of Mg2+ is:
Hydration energy depends on charge of ion and ionic radius.
Higher the charge, greater the hydration energy. On the other hand, smaller the size,
greater the hydration energy.
Charge is considered first for comparison. Hence, Mg2+ has higher hydration energy than Na+.