Cry over spilled milk

Means to be upset about something that has already happened and cannot be changed.

“She realized there was no use crying over spilled milk when she missed the bus; instead, she hailed a taxi.”