Isaiah 31:7

For in that day every man shall cast away his idols of silver, and his idols of gold, which your own hands have made unto you for a sin.

The verse belongs to a rebuke of Israel's spiritual unfaithfulness, in which forsaking God to seek help from Egypt was rebellion, and churches that seek union with civil power repeat that same unfaithfulness. Its setting includes the Lord coming to defend Jerusalem at the time the people cast away their idols. In the day of God's deliverance, every person will abandon the idols of silver and gold that their own hands made and that became a sin to them.

The prophecies concerning Israel around the verse present Israel as a type of conditions in the Christian age. The verse teaches a strong lesson against trusting in men and vividly portrays human frailty. The description is connected with millennial times and therefore should not be read as a literal account of the final coming to judgment.