Words or acts come back to cause trouble for a person; something bad you said or did receives punishment; you get the punishment that you deserve.
Often used in a short form.
Fred's chickens finally came home to roost today. He was late so often that the teacher made him go to the principal.
Mary's selfishness will come home to roost some day.
Truth be told, some nefarious financial decisions were made and the chickens are coming home to roost, albeit on the backs of some of the employees!