The danger zone(the temp at which food is neither hot or cold) for any food is a max of 30 minutes. But because it is cooked you can push it a little if you'd like put after an hour I would say put it away or throw it away.
About an hour
Preferably, less than an hour or right at an hour max for cooked meats before you refrigerate them again. The less time left out, the better.