In a May 1833 revelation, Joseph is rebuked by the Lord for not keeping the commandments; he is commanded to pray always lest "that wicked one" will have power over him.
Section 93:47-49, Doctrine and Covenants, The Church of Jesus Christ of Latter Day Saints, accessed November 24, 2023
47 And now, verily I say unto Joseph Smith, Jun.—You have not kept the commandments, and must needs stand rebuked before the Lord;
48 Your family must needs repent and forsake some things, and give more earnest heed unto your sayings, or be removed out of their place.
49 What I say unto one I say unto all; pray always lest that wicked one have power in you, and remove you out of your place.