Nuts are rich sources of magnesium. Almonds, cashew, and peanuts are packed with magnesium.