D&C 112:1-17 reads as follows, containing many promises to Thomas B. Marsh (emphasis added):
Verily thus saith the Lord unto you my servant Thomas: I have heard thy prayers; and thine alms have come up as a memorial before me, in behalf of those, thy brethren, who were chosen to bear testimony of my name and to send it abroad among all nations, kindreds, tongues, and people, and ordained through the instrumentality of my servants, verily I say unto you, there have been some few things in thine heart and with thee with which I, the Lord, was not well pleased. Nevertheless, inasmuch as thou hast abased thyself thou shalt be exalted; therefore, all thy sins are forgiven thee. Let thy heart be of good cheer before my face; and thou shalt bear record of my name, not only unto the Gentiles, but also unto the Jews; and thou shalt send forth my word unto the ends of the earth. Contend thou, therefore, morning by morning; and day after day let thy warning voice go forth; and when the night cometh let not the inhabitants of the earth slumber, because of thy speech. Let thy habitation be known in Zion, and remove not thy house; for I, the Lord, have a great work for thee to do, in publishing my name among the children of men. Therefore, gird up thy loins for the work. Let thy feet be shod also, for thou art chosen, and thy path lieth among the mountains, and among many nations. And by thy word many high ones shall be brought low, and by thy word many low ones shall be exalted. Thy voice shall be a rebuke unto the transgressor; and at thy rebuke let the tongue of the slanderer cease its perverseness. Be thou humble; and the Lord thy God shall lead thee by the hand, and give thee answer to thy prayers. I know thy heart, and have heard thy prayers concerning thy brethren. Be not partial towards them in love above many others, but let thy love be for them as for thyself; and let thy love abound unto all men, and unto all who love my name. And pray for thy brethren of the Twelve. Admonish them sharply for my name's sake, and let them be admonished for all their sins, and be ye faithful before me unto my name. And after their temptations, and much tribulation, behold, I, the Lord, will feel after them, and if they harden not their hearts, and stiffen not their necks against me, they shall be converted, and I will heal them. Now, I say unto you, and what I say unto you, I say unto all the Twelve: Arise and gird up your loins, take up your cross, follow me, and feed my sheep. Exalt not yourselves; rebel not against my servant Joseph; for verily I say unto you, I am with him, and my hand shall be over him; and the keys which I have given unto him, and also to youward, shall not be taken from him till I come. Verily I say unto you, my servant Thomas, thou art the man whom I have chosen to hold the keys of my kingdom, as pertaining to the Twelve, abroad among all nations--That thou mayest be my servant to unlock the door of the kingdom in all places where my servant Joseph, and my servant Sidney, and my servant Hyrum, cannot come.
This text is strong evidence for contingent, not exhaustive, foreknowledge. At the moment this revelation was given through the Prophet Joseph Smith, Thomas Marsh was righteous and faithful to the Gospel (cf. D&C 52:22; 56:5; 75:31 where he referred to by the Lord as "my servant" prior to D&C 112). However, due to then-future free-will actions, Thomas would be excommunicated from the Church and lose this blessing.
Commenting on vv.4-9, Stephen Robinson and H. Dean Garrett wrote in A Commentary on the Doctrine and Covenants, Vol 4:
The blessings enumerated here for the future of Thomas Marsh were, like most of God's promises, conditional upon his continued faithfulness. Unfortunately, very little of this blessing was ever realized, for Elder Marsh left the Church the following year. Of interest, perhaps, is that the Quorum of the Twelve Apostles did undertake a mission to the British Isles between 1839 and 1841, as President Marsh had anticipated. By that time, however, Marsh himself had become disaffected from the Church and Brigham Young presided over the mission.
As Andrew Jenson wrote:
About the time when the persecutions against the Saints in Caldwell county, Mo., commenced in August, 1838, Elder Marsh became disaffected and turned a traitor against his brethren. Shortly after he moved away from Far West and located in Clay county. Later he settled in Richmond, Ray county. He was finally excommunicated from the Church at a conference held at Quincy, Ill., March 17, 1839. In July 1857, Thos. B. Marsh was rebaptized in Florence, Nebraska, and came to Utah that same year. A few years afterwards he died at Ogden as a pauper and invalid. (Andrew Jenson, Latter-day Saint Biographical Encyclopedia: A Compilation of Biographical Sketches of Prominent Men and Women in the Church of Jesus Christ of Latter-day Saints [4 vols; Salt Lake City: The Andrew Jenson History Company and The Deseret News, 1901], 1:76)
For more, see: