Selection from Apocalypse Explained ~ Emanuel Swedenborg
It is known that man's interior must be purified before the good that he does is good; for the Lord says:Thou blind Pharisee, cleanse first the inside of the cup and of the platter, that the outside may be clean also (Matt. 13:26).Man's interior is purified only as he refrains from evils, in accordance with the commandments of the Decalogue. So long as man does not refrain from these evils and does not shun and turn away from them as sins, they constitute his interior, and are like an interposed veil or covering, and in heaven this appears like an eclipse by which the sun is obscured and light is intercepted; also like a fountain of pitch or of black water, from which nothing emanates but what is impure. That which emanates therefrom and that appears before the world as good is not good, because it is defiled by evils from within, for it is Pharisaic and hypocritical good. This good is good from man and is meritorious good. It is otherwise when evils have been removed by a life according to the commandments of the Decalogue.
Now since evils must be removed before goods can become goods, the Ten Commandments were the first of the Word, being promulgated from Mount Sinai before the Word was written by Moses and the Prophets. And these do not set forth goods that must be done, but evils that must be shunned. For the same reason these commandments are the first things to be taught in the churches; for they are taught to boys and girls in order that man may begin his Christian life with them, and by no means forget them as he grows up; although he does so. The same is meant by these words in Isaiah:
What is the multitude of sacrifices to Me? Your meal-offering, your incense, your new moons, and your appointed feasts, My soul hateth. And when you multiply prayer I will not hear. Wash you, make you clean; put away the evil of your doings from before Mine eyes; cease to do evil. Then though your sins be as scarlet they shall be white as snow; though they be red as purple they shall be as wool (1:11-19."Sacrifices," "meal-offerings," "incense," "new moons," and "feasts," also "prayer," mean all things of worship. That these are wholly evil and even abominable unless the interior is purified from evils is meant by Wash you, make you clean, put away the evil of your doings, and cease to do evil. That afterwards they are all goods is meant by the words that follow.
(Apocalypse Explained 939)