Hosea 3:5 Afterward shall the children of Israel return, and seek the LORD their God, and David their king; and shall fear the LORD and his goodness in the latter days.
As Hosea lives out his story and life that God has called him to Hosea can see that God is going to bring Israel back to Himself. God will work in the lives of His people. There will be hard times as the consequence of their sin but God will use it to bring them back. They will once again glorify Him.
God is kind enough to show us what He is doing. He shows us even the process. He shows us that they suffer because of their rebellion. He shows us that after the consequences the people realize their need of God. Could it be that I too suffer when I do wrong so that I can see my need of God.