Green leafy vegetables (swiss chard, spinach), beans and legumes (peas, navy beans, pinto beans, lima beans), whole grains, dairy products and chocolates are rich sources of magnesium. Inclusion of these foods in your daily diet is essential to prevent deficiency disorder known as magnesium deficiency syndrome.