The Prophet’s Instruction on the Doctrine of Election
June 27, 1839
History of the Church, 3:379-381
This document, “History, 1838–1856, volume C-1 [2 November 1838–31 July 1842],” is the third of six volumes of the “Manuscript History of the Church” (in The Joseph Smith Papers the “Manuscript History” bears the editorial title “History, 1838–1856”).
THE DOCTRINE OF ELECTION. St. Paul exhorts us to make our calling and election sure. This is the sealing power spoken of by Paul in other places.

13. In whom ye also trusted, that after ye heard the word of truth, the Gospel of your salvation: in whom also after that ye believed, ye were sealed with that Holy Spirit of promise,14. Which is the earnest of our inheritance until the redemption of the purchased possession, unto the praise of His glory, that we may be sealed up unto the day of redemption.”–Ephesians, 1st chapter.

This principle ought (in its proper place) to be taught, for God hath not revealed anything to Joseph, but what He will make known unto the Twelve, and even the least Saint may know all things as fast as he is able to bear them, for the day must come when no man need say to his neighbor, Know ye the Lord; for all shall know Him (who remain) from the least to the greatest. How is this to be done? It is to be done by this sealing power, and the other Comforter spoken of, which will be manifest by revelation.

There are two Comforters spoken of. One is the Holy Ghost, the same as given on the day of Pentecost, and that all Saints receive after faith, repentance, and baptism. This first Comforter or Holy Ghost has no other effect than pure intelligence. It is more powerful in expanding the mind, enlightening the understanding, and storing the intellect with present knowledge, of a man who is of the literal seed of Abraham, than one that is a Gentile, though it may not have half as much visible effect upon the body; for as the Holy Ghost falls upon one of the literal seed of Abraham, it is calm and serene; and his whole soul and body are only exercised by the pure spirit of intelligence; while the effect of the Holy Ghost upon a Gentile, is to purge out the old blood, and make him actually of the seed of Abraham. That man that has none of the blood of Abraham (naturally) must have a new creation by the Holy Ghost. In such a case, there may be more of a powerful effect upon the body, and visible to the eye, than upon an Israelite, while the Israelite at first might be far before the Gentile in pure intelligence.

The other Comforter spoken of is a subject of great interest, and perhaps understood by few of this generation. After a person has faith in Christ, repents of his sins, and is baptized for the remission of his sins and receives the Holy Ghost, (by the laying on of hands),which is the first Comforter, then let him continue to humble himself before God, hungering and thirsting after righteousness, and living by every word of God, and the Lord will soon say unto him, Son, thou shalt be exalted. When the Lord has thoroughly proved him, and finds that the man is determined to serve Him at all hazards, then the man will find his calling and his election made sure, then it will be his privilege to receive the other Comforter, which the Lord hath promised the Saints, as is recorded in the testimony of St. John, in the 14th chapter, from the 12th to the 27th verses. . . .

Now what is this other Comforter? It is no more nor less that the Lord Jesus Christ Himself; and this is the sum and substance of the whole matter; that when any man obtains this last Comforter, he will have the personage of Jesus Christ to attend him, or appear unto him from time to time, and even He will manifest the Father unto him, and they will take up their abode with him, and the visions of the heavens will be opened unto him, and the Lord will teach him face to face, and he may have a perfect knowledge of the mysteries of the Kingdom of God; and this is the state and place the ancient Saints arrived at when they had such glorious visions–Isaiah, Ezekiel, John upon the Isle of Patmos, St. Paul in the three heavens, and all the Saints who held communion with the general assembly and Church of the First Born.

More links to Doctrine of Election from Joseph Smith Papers