Hosea 2:4 & 5
"'I will not show my love to her children, because they are the children of adultery. Their mother has been unfaithful and has conceived them in disgrace. She said, "I will go after my lovers, who give me my food and water, my wool and my linen, my oil and my drink."'" NIV translation
Now, we get to the heart of what is being talked about here. The example of an unfaithful wife is used to describe how Israel had forgotten that God was their provider. Israel was giving credit to idols for providing for their needs and grumbling against God's provision. The same type of thing happens all the time today as even Christians trust in the work of their hands and forget that God is the one that takes care of them. Chasing after the things of this world is the same as prostitution in God's eyes.