On moving down the group size of cation increases so hydration energy decreases and solubility decreases as lattice energy dominates over hydration energy.
Due to very small size of Mg+2,Mg+2 shows maximum hydration energy and MgSO4 is more soluble here.