get what's coming to one
To receive the good or bad that you deserve; get what is due to you; get your share.
At the end of the movie the villain got what was coming to him and was put in jail.
John didn't think he was getting what was coming to him, so he quit the job.
Mother told Mary that she'd get hers if she kept on being naughty.