Here, as the Lord warns Joseph that he needs to leave Nauvoo, we can draw a parallel in our life as well. Often times for our own safety or good, the Lord will tell us to move, sometimes physically, but more often he asks us to move spiritually. To do something that will help us progress on our path towards Him. As we heed those promptings we can have faith and hope that God is working all things together for our good.
Scott
https://www.churchofjesuschrist.org/study/general-conference/2012/04/how-to-obtain-revelation-and-inspiration-for-your-personal-life?lang=eng