Joseph, in a discourse dated March 10, 1844, predicts that Jesus "will not come for 40 years" and critiques William Miller for predicting the date of Jesus's Second Coming.
Discourse, 10 March 1844, as Reported by Thomas Bullock, The Joseph Smith Papers website, accessed August 1, 2024
the Rainbow is a sign for seed time and harvest when the Rainbow is not to be seen— it is a sign of the commencement of famine— & pestilence &c &c and that the coming of the Messiah is not far distant the Messiah will not come this year— upsets Millerites the Messiah will not come for 40 years— and he told the people to write it— a very large & attentive congregation—