From Teachings of the Prophet Joseph Smith page 216-217
Joseph the Seer arose in the power of God; reproved and rebuked wickedness before the people, in the name of the Lord God. He wished to say a few words to suit the condition of the general mass, and then said: I shall speak with authority of the Priesthood in the name of the Lord God, which shall prove a savor of life unto life, or of death unto death. Notwithstanding this congregation profess to be Saints, yet I stand in the midst of all [kinds of] characters and classes of men. If you wish to go where God is, you must be like God, or possess the principles which God possesses, for if we are not drawing towards God in principles, we are going from Him and drawing towards the devil.
Yes, I am standing in the midst of all kinds of people.
Search your hearts, and see if you are like God. I have searched mine, and feel to repent of all my sins.
Men are Saved Through Obedience to Knowledge
We have thieves among us, adulterers, liars, hypocrites. If God should speak from heaven, he would command you not to steal, not to commit adultery, not to covet, nor deceive, but be faithful over a few things. As far as we degenerate from god, we descend to the devil and lose knowledge, and without knowledge we cannot be saved, and while our hearts are filled with evil, we are studying evil, there is no room in our hearts for good, or studying good. Is not God good? Then you be good; if He is faithful, then you be faithful. Add to your faith virtue, to virtue knowledge, and seek for every good thing.
The Church must be cleansed, and I proclaim against all iniquity. A man is saved no faster than he gets knowledge, for if he does not get knowledge, he will be brought into captivity by some evil power in the other world, as evil spirits will have more knowledge, and consequently more power than many men who are on the earth. Hence it needs revelation to assist us, and give us knowledge of the things of God.
What is the reason that the Priests of the day do not get revelation? They ask only to consume it upon their lusts. Their hearts are corrupt, and they cloak their iniquity by saying there are no more revelations. But if any revelations are given of God, they are universally opposed by the priests and Christendom at large; for they reveal their wickedness and abominations. (April 10, 1842.) DHC 4:588.