"Everyone who looks at a woman lustfully has already committed adultery with her in his heart" (Mt 5:28).
CCC 2532
The ninth commandment warns against lust or carnal concupiscence.
The struggle against carnal lust involves purifying the heart and practicing temperance.
Purity of heart will enable us to see God: it enables us even now to see things according to God.
Purification of the heart demands prayer, the practice of chastity, purity of intention and of vision.
Purity of heart requires the modesty which is patience, decency, and discretion. Modesty protects the intimate center of the person.
You shall not covet... anything that is your neighbor's....
You shall not desire your neighbor's house, his field, or his manservant, or his maidservant,, or his ox, or his ass, or anything that is your neighbor's (EX 20:17; Deut 5:21).
For where your treasure is, there will your heart be also (Mt 6:21).
The Tenth Commandment
The tenth commandment unfolds and completes the ninth, which is concerned with concupiscence of the flesh. It forbids coveting the goods of another, as the root of theft, robbery, and fraud, which the seventh commandment forbids. "Lust of the eyes" leads to the violence and injustice forbidden by the fifth commandment (Cf. 1 Jn 2:16; Mic 2:2). Avarice, like fornication, originates in the idolatry prohibited by the first three prescriptions of the Law (Cf. Wis 14:12). The tenth commandment concerns the intentions of the heart; with the ninth, it summarizes all the precepts of the Law.
The sensitive appetite leads us to desire pleasant things we do not have, e.g., the desire to eat when we are hungry or to warm ourselves when we are cold. These desires are good in themselves; but often they exceed the limits of reason and drive us to covet unjustly what is not ours and belongs to another or is owed to him.
The tenth commandment forbids greed and the desire to amass earthly goods without limit. It forbids avarice arising from a passion for riches and their attendant power. It also forbids the desire to commit injustice by harming our neighbor in his temporal goods:
When the Law says, "You shall not covet," these words mean that we should banish our desires for whatever does not belong to us. Our thirst for another's goods is immense, infinite, never quenched. Thus it is written: "He who loves money never has money enough." (Roman Catechism, III, 37; cf. Sir 5:8)