Ahaziah did what the Lord said was wrong, as Ahab’s family had done. They gave advice to Ahaziah after his father died, and their bad advice led to his death.
God made husbands and wives to become one body and one spirit for his purpose—so they would have children who are true to God. So be careful, and do not break your promise to the wife you married when you were young.
“Those who love their father or mother more than they love me are not worthy to be my followers. Those who love their son or daughter more than they love me are not worthy to be my followers.