18:3 After the {a} 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.
(a) You shall preserve yourselves from these abominations following, which the Egyptians and Canaanites use.
18:3 Egypt and Canaan - These two nations he mentions, because their habitation and conversation among them made their evil example in the following matters more dangerous. But under them he includes all other nations.
18:1-30 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.