Ezekiel 16 is one of the longest chapters in the prophets, an allegory of Jerusalem's history from God's point of view. Her origins were humble: her father was an Amorite and her mother a Hittite, meaning the city began among the nations of Canaan. In the picture, she was a newborn cast out in the open field, unwashed and unwanted. Then God passed by and said, Live! The whole story begins with grace that she did nothing to earn.
God entered into a covenant with her, and she became his. He washed her, anointed her with oil, and clothed her with embroidered work, fine linen, and silk. He adorned her with ornaments and a beautiful crown, and her renown went out among the nations because of the majesty God had put on her. Then came the tragic turn: she trusted in her beauty, forgot the days of her youth, and poured God's gifts into idol worship and alliances with Egypt, Assyria, and Chaldea. The chapter describes this unfaithfulness in strong terms; the point is that she gave her heart to others instead of God.
God compared Jerusalem with her sisters Samaria and Sodom and found her worse. Sodom's sin is named plainly: arrogance, fullness of bread, and prosperous ease, without strengthening the hand of the poor and needy. Yet the final word is not judgment. Nevertheless I will remember my covenant with you in the days of your youth, and I will establish an everlasting covenant with you. When God forgives all she has done, she will remember and be humbled. In the New Testament, Romans 5:8 says: But God commends his own love toward us, in that while we were yet sinners, Christ died for us.