Doctrine and Covenants 1:17-18

“Wherefore, I the Lord, knowing the calamity which should come upon the inhabitants of the earth, called upon my servant Joseph Smith, Jun., and spake unto him from heaven, and gave him commandments; and also gave commandments to others, that they should proclaim these things unto the world; and all this that it might be fulfilled, which was written by the prophets.”