To maintain safety, leftovers should be refrigerated immediately—no longer than 2 hours. Room temperatures promote bacterial growth and subsequently spoil foods and make them unsafe to eat.