(Read Hosea 9:11-17.)
God departs from a people, or from a person, when he withdraws his goodness and mercy from them; and when the Lord is departed, what can the creature do? Even though, for the present, good things seem to remain, yet the blessing is gone if God is gone. Even the children should perish with the parents. The Divine wrath dries up the root, and withers the fruit of all comforts; and the scattered Jews daily warn us to beware, lest we neglect or abuse the gospel. Yet every smiting is not a drying up of the root. It may be that God intends only to smite so that the sap may be turned to the root, that there may be more of root graces, more humility, patience, faith, and self-denial. It is very just that God should bring judgments on those who slight his offered mercy.
For a more detailed summary select the link below.
Hosea 9 Bible Commentary – Matthew Henry (concise) (christianity.com)
Hosea 9:17
17 My God will cast them away, because they didn’t listen to him; and they will be wanderers among the nations.