Various prophets, from Adam to the present dispensation, came to Joseph Smith with keys (see D&C 128:21). John the Baptist brought "the keys of the ministering of angels, and of the gospel of repentance, and of baptism by immersion for the remission of sins" (D&C 13:1). Peter, James, and John restored the keys of their ministry and declared themselves as possessing the keys of the kingdom and of the dispensation of the fulness of times (see D&C 27:12; D&C 128:20). Moses restored "the keys of the gathering of Israel from the four parts of the earth, and the leading of the ten tribes from the land of the north" (D&C 110:11). Elias "committed the dispensation of the gospel of Abraham" (D&C 110:12). Elijah came with "the keys of the power of turning the hearts of the fathers to the children, and the hearts of the children to the fathers" (D&C 27:9; D&C 110:13–16). He then told Joseph, "The keys of this dispensation are committed into your hands" (D&C 110:16).
The Savior gave Peter "the keys of the kingdom" with authority to "bind on earth . . . [and] in heaven" (Matthew 16:19). The Lord also extended this authority to the rest of the Twelve (see Matthew 18:18). Nephi was also given the sealing authority (see Helaman 10:7). These keys and sealing authority were restored to Joseph Smith and are held today by the President of the Church (see D&C 132:7, 45–46).
To Joseph and Oliver, the Lord said, "Behold, your sins are forgiven you; you are clean before me; therefore, lift up your heads and rejoice." He encouraged all to rejoice who had labored to build the temple, promising, "I have accepted this house, and my name shall be here; and I will manifest myself to my people in mercy in this house." He also explained, "the hearts of thousands and tens of thousands shall greatly rejoice in consequence of the blessings which shall be poured out, and the endowment with which my servants have been endowed in this house. And the fame of this house shall spread to foreign lands" (D&C 110:5–10).