Peaches and apples are high in magnesium. However, bananas remains the top recommendation among the fruits you should eat before going to bed. This is because they contain tryptophan and potassium.