Death saved the one good son
The house of Jeroboam turned to evil, but his son had something good in him toward the Lord God, and although the young man died, he escaped the horrible deaths of his family.
A prophet told Jeroboam’s wife that her son would die when she returned home, and so the Bible says,
“Then Jeroboam’s wife arose and departed, and came to Tirzah. When she came to the threshold of the house, the child died. And they buried him; and all Israel mourned for him, according to the word of the LORD which He spoke through His servant Ahijah the prophet” (1 Kings 14:17-18).
Later the house of Jeroboam all died in shame, whereas, when this son died, Israel mourned his passing.
If your family does not follow the Lord, remain faithful to Him; do not become discouraged, but know that many righteous people have gone before you.