Genesis 50:25 And Joseph took an oath of the children of Israel, saying, God will surely visit you, and ye shall carry up my bones from hence.
Joseph knew that things would not be over when he died. He was going to die. He also knew that God would not leave His people in Egypt. God was coming to take them out of Egypt and give them the promised land. There is a future. There always is a future for the child of God. God’s promises will come true.
You need to learn to focus above where you are. Focus on what He has said. Find His promises and believe them. Act on them. Even in death, Joseph was confident that God was still at work. I want to learn to be that confident in Him.