
Be wise after the event
Hindsight Bias
This phrase is used when someone realizes the right thing to do only after a situation has happened. 
Regret Implication
Using this phrase can imply regret for not making a better decision earlier. 
Unforeseen Consequences
It emphasizes learning from unforeseen consequences or outcomes. 