11 For it must needs be, that there is an aopposition in all things. If not so, my firstborn in the wilderness, righteousness could not be brought to pass, neither wickedness, neither holiness nor misery, neither good nor bad. Wherefore, all things must needs be a compound in one; wherefore, if it should be one body it must needs remain as dead, having no life neither death, nor corruption nor incorruption, happiness nor misery, neither sense nor insensibility.
12 Wherefore, it must needs have been created for a thing of naught; wherefore there would have been no apurpose in the end of its creation. Wherefore, this thing must needs destroy the wisdom of God and his eternal purposes, and also the power, and the mercy, and the bjustice of God.
13 And if ye shall say there is ano law, ye shall also say there is no sin. If ye shall say there is no sin, ye shall also say there is no righteousness. And if there be no righteousness there be no happiness. And if there be no righteousness nor happiness there be no punishment nor misery. And if these things are not bthere is no God. And if there is no God we are not, neither the earth; for there could have been no creation of things, neither to act nor to be acted upon; wherefore, all things must have vanished away.
14 And now, my sons, I speak unto you these things for your profit and alearning; for there is a God, and he hath bcreated all things, both the heavens and the earth, and all things that in them are, both things to act and things to be cacted upon.
15 And to bring about his eternal apurposes in the end of man, after he had bcreated our first parents, and the beasts of the field and the cfowls of the air, and in fine, all things which are created, it must needs be that there was an opposition; even the dforbidden efruit in fopposition to the gtree of life; the one being sweet and the other bitter.
16 Wherefore, the Lord God gave unto man that he should aact for himself. Wherefore, man could not bact for himself save it should be that he was centiced by the one or the other.
(Book of Mormon | 2 Nephi 2:11 - 16)