In this paper, we apply the general theory of Arnold (1965, 1966) and Moffatt et al. (1997). We search sufficient conditions for the linear stability of steady three-dimensional incompressible gravitating flows in ideal magnetohydrodynamics (MHD). The results suggest that the solar and the stellar convection zones must be sensitive to the density stratification.