The tenth commandment teaches us to be content with what we have. It forbids us to unjustly own others' goods, to keep such goods, to have a desire or to be jealous of others' possessions. It also forbids us to be jealous of the success of others. A man who lives in a hut sees the luxurious mansion just in front of his home. He is not jealous of him. He does not envy him. He rejoices in their good fortune. Such a man is a true noble human.
But, getting what belongs to others by just means is not forbidden by this commandment. (CCC 2537) For example, Buying a television set from the shop.
The first thought that incites a person to sin, is envy. The prophet Micah shows us how this envious thought can turn into action and how it can alienate us from God, from our neighbour and from our brother.