The sin of coveting is found in all religious texts:
For this you know with certainty, that no immoral or impure person or covetous man, who is an idolater, has an inheritance in the kingdom of Christ and God.
From the KJV Bible, Exodus 20:17
Thou shalt not covet thy neighbour’s house, thou shalt not covet thy neighbour’s wife, nor his manservant, nor his maidservant, nor his ox, nor his ass, nor any thing that is thy neighbor’s.
And do not covet that by which Allah has made some of you excel others;men shall have the benefit of what they earn and women shall have the benefit of what they earn; and ask Allah of His grace; surely Allah knows all things.
Nor strain thine eyes in longing for the things We have given for enjoyment to parties of them, the splendor of the life of this world, through which We test them: but the provision of thy Lord is better and more enduring.
Other persons say that a person consists of desires. As is his desire so is his will. As is his will so is the deed he does. Whatever deed he does is that he attains.
Coveting traps a person into attachment of the material world. In order to achieve true happiness, a person must have one foot in this world and the other in the afterlife to remind themselves of all that lies beyond this world. This world is a test to the soul to see where each soul goes, and to covet something is a sin because it will only punish yourself.