Here's a breakdown:
* "Had it coming" - This phrase suggests that the person's actions were such that the negative outcome was inevitable.
* "To him" - This indicates that the person who received the consequence is the subject of the idiom.
Examples:
* "The bully got kicked out of school. He really had it coming to him after all the trouble he caused."
* "After lying to his boss, the employee got fired. He had it coming to him."
Important Note: While this idiom suggests that the person deserved what happened, it doesn't necessarily condone the negative action. It simply acknowledges the cause and effect relationship.