Most foods are safe to eat within five days of preparation when properly stored and reheated. How long a prepared meal stays fresh and safe to eat depends on the freshness of the ingredients used to prepare. So if you use cooked or open canned beans to meal prep you will need to take into account the days they've been stored in the refrigerator to calculate how long your food will last. Foods should be stored below 40° F in the refrigerator or freezer to prevent or slow down the growth of harmful organisms. Then to reheat, it's recommended to reheat foods to above 165° F before eating them. A general rule of thumb also is if something doesn't look or smell right it's best to throw it out.