Throughout the OT prophets, God used analogies of an unfaithful spouse to symbolize a spiritual problem we all have, that is running to idols when God wants us to trust him, love him “Love the Lrd your God with all your heart, soul, mind and strength, and love your neighbor as yourself.”
Yet when we turn away and make an idol of self, money, relationships or careers- we show we all at the core are not in those moments truly trusting God to meet our deepest needs but trusting our own devisings and hoping certain things will rescue us!
Israel had started to turn away from God who saved them and trusted their false gods to make them happy and save them. God used an literal relationship Hosea the prophet had with his wife Gomer to show the people, all of them what they were doing to Him.
Hosea was told to marry a promiscuous woman by the Lord and she ended up commiting adultery and got trapped in prostitution, had a child from another man but God had Hosea buy her back and said
The Lord said to me, “Go, show your love to your wife again, though she is loved by another man and is an adulteress. Love her as the Lord loves the Israelites, though they turn to other gods and love the sacred raisin cakes. ” So I bought her for fifteen shekels of silver and about a homer and a lethek of barley. Then I told her, “You are to live with me many days; you must not be a prostitute or be intimate with any man, and I will behave the same way toward you.” For the Israelites will live many days without king or prince, without sacrifice or sacred stones, without ephod or household gods. Afterward the Israelites will return and seek the Lord their God and David their king. They will come trembling to the Lord and to his blessings in the last days.
So it is true also with the Gospel. We cannot buy ourselves out but Jesus Christ payed the ransom for us and then when we turn to the Lord in humble repentence he saves us from our old ways and gives us a new lease on life to serve and love Him in response to his great love toward us!