Deuteronomy 5. Exodus 20:17 starts with the house: "You shall not covet your neighbor's house; you shall not covet your neighbor's wife, male or female slave, ox, donkey, or anything that belongs to your neighbor." Deuteronomy 5:21 gives the wife a line of her own first: "Neither shall you covet your neighbor's wife." Then a second sentence turns to the house and field, and the verb changes from covet to desire.
Catholics and Lutherans treat the first two commandments, on no other gods and no idols, as one commandment. Michael Coogan, a scholar, says they split the coveting commandment into two, so the count still reaches ten. He adds that their last two commandments follow the Deuteronomy version.
Learn the Bible.
Not just the stories, but the history, authorship, and scholarship behind it.