You must take the consequences of your actions, however unpleasant.
It first appeared around 1590 as the Middle French proverb “comme on faist son lict, on le treuve” (“As one makes his/her bed, one finds it.”)