Two hours
Cooked food sitting at room temperature is in what the USDA calls the "Danger Zone," which is between 40°F and 140°F. In this range of temperatures, bacteria grows rapidly and the food can become unsafe to eat, so it should only be left out no more than two hours.