lock the barn door after the horse is stolen
To be careful or try to make something safe when it is too late. — A proverb.
After Mary failed the examination, she said she would study hard after that. She wanted to lock the barn door after the horse was stolen.