1. The Prophet Joseph Smith gave the Twelve the keys of the kingdom and taught the principles of succession in the Presidency.

Watch: Succession in the Presidency President Hinckley teaches about succession in the Presidency. (2:13)
D&C 107:22-24 Equal in authority and power
‘With reference to this subject, the fourth President of the Church, Wilford Woodruff, made a few observations in a letter to President Heber J. Grant, then a member of the Twelve, under date of March 28, 1887. I quote from that letter: “. . . when the President of the Church dies, who then is the Presiding Authority of the Church? It is the Quorum of the Twelve Apostles (ordained and organized by the revelations of God and none else). Then while these Twelve Apostles preside over the Church, who is the President of the Church [?] It is the President of the Twelve Apostles. And he is virtually as much the President of the Church while presiding over Twelve men as he is when organized as the Presidency of the Church, and presiding over two men.” And this principle has been carried out now for 140 years—ever since the organization of the Church. Then President Woodruff continued:
“As far as I am concerned it would require . . . a revelation from the same God who had organized the church and guided it by inspiration in the channel in which it has travelled for 57 years, before I could give my vote or influence to depart from the paths followed by the Apostles since the organization of the Church and followed by the inspiration of Almighty God, for the past 57 years, by the apostles, as recorded in the history of the Church.”‘ (Harold B Lee, General Conference, April 1970)
Read: The Kingdom of God Will Roll On: Succession in the Presidency Brent Top and Lawrence R Flake, Ensign, August 1996
2. After Joseph Smith’s martyrdom, the Twelve presided over the Church until Brigham Young was sustained as President.

Watch: Preparation of Brigham Young: Preparation of a Leader
‘When the Prophet Joseph and Hyrum Smith were murdered in Carthage Jail, many of the Quorum of the Twelve and other Church leaders were serving missions and were absent from Nauvoo. Several days passed before these men learned of the deaths. When Brigham Young heard the news, he knew that the keys of priesthood leadership were still with the Church, for these keys had been given to the Quorum of the Twelve. However, not all Church members understood who would replace Joseph Smith as the Lord’s prophet, seer, and revelator.
Sidney Rigdon, First Counselor in the First Presidency, arrived from Pittsburgh, Pennsylvania, on 3 August 1844. In the year before this time, he had begun taking a course contrary to the counsel of the Prophet Joseph Smith and had become estranged from the Church. He refused to meet with the three members of the Twelve already in Nauvoo and instead spoke to a large group of the Saints assembled for their Sunday worship service. He told them of a vision he had received in which he had learned that no one could replace Joseph Smith. He said that a guardian to the Church should be appointed and that guardian should be Sidney Rigdon. Few Saints supported him.
Brigham Young, President of the Quorum of the Twelve Apostles, did not return to Nauvoo until 6 August 1844. He declared that he wanted only to know “what God says” about who should lead the Church.19 The Twelve called a meeting for Thursday, 8 August 1844. Sidney Rigdon spoke in the morning session for more than one hour. He won few if any adherents to his position.
Brigham Young then spoke briefly, comforting the hearts of the Saints. As Brigham spoke, George Q. Cannon remembered, “it was the voice of Joseph himself,” and “it seemed in the eyes of the people as if it were the very person of Joseph which stood before them.”20 William C. Staines testified that Brigham Young spoke like the voice of the Prophet Joseph. “I thought it was he,” Staines said, “and so did thousands who heard it.”21 Wilford Woodruff also recalled that wonderful moment and wrote, “If I had not seen him with my own eyes, there is no one that could have convinced me that it was not Joseph Smith, and anyone can testify to this who was acquainted with these two men.”22 This miraculous manifestation, seen by many, made clear to the Saints that the Lord had chosen Brigham Young to succeed Joseph Smith as leader of the Church.
In the afternoon session, Brigham Young again spoke, testifying that the Prophet Joseph had ordained the Apostles to hold the keys of the kingdom of God in all the world. He prophesied that those who did not follow the Twelve would not prosper and that only the Apostles would be victorious in building up the kingdom of God.
Following his talk, President Young asked Sidney Rigdon to talk, but he chose not to. Following remarks by William W. Phelps and Parley P. Pratt, Brigham Young spoke again. He talked of completing the Nauvoo Temple, obtaining the endowment before going into the wilderness, and the importance of the scriptures. He spoke of his love for Joseph Smith and his affection for the Prophet’s family. The Saints then voted unanimously in favor of the Twelve Apostles as leaders of the Church.
While a few others would claim a right to the Presidency of the Church, for most Latter-day Saints the succession crisis was over. Brigham Young, the senior Apostle and President of the Quorum of the Twelve, was the man God had chosen to lead his people, and the people had united to sustain him.’ (Succession in the Presidency in Our Heritage)
3. Before leaving Nauvoo, the Saints received temple ordinances.

“Notwithstanding that I had announced that we would not attend to the administration of the ordinances, the House of the Lord was thronged all day, the anxiety being so great to receive, as if the brethren would have us stay here and continue the endowments until our way would be hedged up, and our enemies would intercept us. But I informed the brethren that this was not wise, and that we should build more Temples, and have further opportunities to receive the blessings of the Lord, as soon as the saints were prepared to receive them. In this Temple we have been abundantly rewarded, if we receive no more. I also informed the brethren that I was going to get my wagons started and be off. I walked some distance from the Temple supposing the crowd would disperse, but on returning I found the house filled to overflowing.
“Looking upon the multitude and knowing their anxiety, as they were thirsting and hungering for the word, we continued at work diligently in the House of the Lord. Two hundred and ninety-five persons received ordinances” (Brigham Young in History of the Church, 7:579).
4. The Saints experienced trials and miracles as they began journeying west.
Read: Trail of Hope
‘The evacuation of Nauvoo was originally planned to take place in April 1846. But as a result of threats that the state militia intended to prevent the Saints from going west, the Twelve Apostles and other leading citizens hurriedly met in council on 2 February 1846. They agreed that it was imperative to start west immediately, and the exodus began on 4 February. Under the direction of Brigham Young, the first group of Saints eagerly began their journey. However, that eagerness faced a great test, for there were many miles to be covered before permanent camps gave them respite from late winter weather and an exceptionally rainy spring.
To seek safety from their persecutors, thousands of Saints first had to cross the wide Mississippi River to Iowa territory. The perils of their journey began early when an ox kicked a hole in a boat carrying a number of Saints and the boat sank. One observer saw the unfortunate passengers hanging on to feather beds, sticks of wood, “lumber or any thing they could get hold of and were tossed and sported on the water at the mercy of the cold and unrelenting waves. … Some climbed on the top of the wagon which did not go quite under and were more comfortable while the cows and oxen on board were seen swimming to the shore from whence they came.”1 Finally all the people were pulled onto boats and brought to the other side.
Two weeks after the first crossing, the river froze over for a time. Though the ice was slippery, it supported wagons and teams and made the crossing easier. But the cold weather caused much suffering as the Saints plodded through the snow. In the encampment at Sugar Creek on the other side of the river, a steady wind blew snow that fell to a depth of almost eight inches. Then a thaw caused the ground to become muddy. Around, above, and below, the elements combined to produce a miserable environment for the 2,000 Saints huddled in tents, wagons, and hastily erected shelters while they waited for the command to continue on.
The most difficult part of the journey was this early stage through Iowa. Hosea Stout recorded that he “prepared for the night by erecting a temporary tent out of bed clothes. At this time my wife was hardly able to sit up and my little son was sick with a very high fever and would not even notice any thing that was going on.”2 Many other Saints also suffered greatly.’ (The Trials of a Winter Trek in Our Heritage)