And this is New Testament views:
The Gospel of Luke describes Jesus' warning to guard one's heart against covetousness. "Take care, and be on your guard against all covetousness, for one's life does not consist in the abundance of his possessions."
[24] Jesus also describes the sins that defile a person as sins from coming from untamed desires in the heart.
[25] The Epistle of James portrays covetous desire residing in the heart as being the internal source of temptation and sin.
[26] James goes on to describe how covetous desire leads to fighting and that lack of material possessions is caused by not asking God for them and by asking with wrong motives.
You covet and cannot obtain, so you fight and quarrel. You do not have, because you do not ask. You ask and do not receive, because you ask wrongly, to spend it on your passions. You adulterous people! Do you not know that friendship with the world is enmity with God? Therefore whoever wishes to be a friend of the world makes himself an enemy of God.
— James 4:2-4
[27]
The Epistle to the Ephesians and the Epistle to the Colossians regard the sin of covetousness as a kind of idolatry and list this sin along with sexual immorality and impurity which give rise to the wrath of God.
[28]
But sexual immorality and all impurity or covetousness must not even be named among you, as is proper among saints. Let there be no filthiness nor foolish talk nor crude joking, which are out of place, but instead let there be thanksgiving. For you may be sure of this, that everyone who is sexually immoral or impure, or who is covetous (that is, an idolater), has no inheritance in the kingdom of Christ and God. Let no one deceive you with empty words, for because of these things the wrath of God comes upon the sons of disobedience.
— Ephesians 5:5-6
[29]
The New Testament stresses thanksgiving and contentment as proper heart attitudes that contrast covetousness. John the Baptist exhorted soldiers to be content with their pay rather than extorting money by threats and false accusations.
[30] The book of Hebrews encourages one to keep his life free from the love of money and "be content with what you have" and depend on the promises and help of God rather than trusting in wealth.
[31] The book of 1 Timothy contains a classic warning against the love of money and stresses that it is great gain to be content with food and clothing.
Now there is great gain in godliness with contentment, for we brought nothing into the world, and we cannot take anything out of the world. But if we have food and clothing, with these we will be content. But those who desire to be rich fall into temptation, into a snare, into many senseless and harmful desires that plunge people into ruin and destruction. For the love of money is a root of all kinds of evils. It is through this craving that some have wandered away from the faith and pierced themselves with many pangs.
— 1 Timothy 6:6-10
[32]