Joseph Smith republishes in the Times and Seasons an earlier 1831 revelation, which includes these commandments: Smith republishes condemnation of adultery. "Thou shalt not lie; he that lieth and will not repent shall be cast out. Thou shalt love thy wife with all thy heart, and shall cleave unto her and none else; and he that looketh upon a woman to lust after her, shall deny the faith, and shalt not have the spirit, and if he repents not he shall be cast out. Thou shalt not commit adultery; and he that commiteth adultery and repenteth not, shall be cast out but he that has committed adultery and repents with all his heart, and forsaketh it, and doeth it no more, thou shalt forgive; but if he doeth it again, he shall not be forgiven, but shall be cast out. Thou shalt not speak evil of thy neighbor, nor do him any harm. Thou knowest my laws concerning these things are given in my scriptures: he that sinneth and repenteth not, shall be cast out."
[Times and Seasons, Vol.4, No.24, p.369; Joseph Smith Polygamy Timeline, http://www.i4m.com/think/polygamy/JS_Polygamy_Timeline.htm]