Egg dishes should generally be refrigerated within 2 hours of preparation. Leaving cooked eggs or egg-based dishes at room temperature for too long can allow bacteria to grow.
When serving egg dishes such as devilled eggs, egg salad, or other cold egg dishes, keep them chilled to help maintain food safety. If you are serving them for an extended period, place the serving dish over ice. This will help keep the eggs cold.
For the best quality and food safety, refrigerate leftover egg dishes promptly. Also, avoid leaving them at room temperature for extended periods.