3 After the doings of the land of Egypt, wherein ye dwelt, shall ye not do: and after the doings of the land of Canaan, whither I bring you, shall ye not do: neither shall ye walk in their ordinances.
English Standard Version
3 You shall not do as they do in the land of Egypt, where you lived, and you shall not do as they do in the land of Canaan, to which I am bringing you. You shall not walk in their statutes.
3 Don't live like the people of Egypt where you used to live, and don't live like the people of Canaan where I'm bringing you. Don't do what they do.
New King James Version
3 According to the doings of the land of Egypt, where you dwelt, you shall not do; and according to the doings of the land of Canaan, where I am bringing you, you shall not do; nor shall you walk in their ordinances.
New Living Translation
3 So do not act like the people in Egypt, where you used to live, or like the people of Canaan, where I am taking you. You must not imitate their way of life.
Matthew Henry's Commentary on Leviticus 18:3
Unlawful marriages and fleshly lusts.
Here is a law against all conformity to the corrupt usages of the heathen. Also laws against incest, against brutal lusts, and barbarous idolatries; and the enforcement of these laws from the ruin of the Canaanites. God here gives moral precepts. Close and constant adherence to God's ordinances is the most effectual preservative from gross sin. The grace of God only will secure us; that grace is to be expected only in the use of the means of grace. Nor does He ever leave any to their hearts' lusts, till they have left him and his services.