It depends on a lot of things. Did you leave it in the pot at room temp for a period of time before refrigeration etc.

Next day is usually fine unless it's frozen immediately. Anything past that is a no no.

Vegetables and rice cause more food poisoning than meat. People often think vegetable = good. Not always so.