4 magnesium-rich foods for better sleep and enhanced memory VnExpress Avocado, spinach, and black beans are rich in magnesium, fiber, and healthy fatty acids, supporting sleep regulation and stress reduction.