In Philippians 1:20–21 Paul says, "it is my eager expectation and hope that I will not be at all ashamed, but that with full courage now as always Christ will be honored in my body, whether by life or by death. For to me to live is Christ, and to die is gain." Paul wrote these verses while in prison in a letter to the Philippians, whom he longed to see in person (Philippians 1:8, 12–14). It is important to know that this verse does not mean Paul wanted to die but rather that he was torn between desires: to live for Christ or to die and be with Christ as well as desiring to be with the Philippians in person while also being a witness for Him while in prison. Paul knew that life on this earth was meant to be lived for Christ, but he also knew that death would be even better because he would be in the presence of the Lord. Yet, Paul was in no hurry to die, since it was important to him to spread the gospel as far as possible (Philippians 1:22). Whatever we do, may we, as believers, live it all to honor and glorify God with the life He has given us until we go to be with Him.
When Paul wrote the book of Philippians he was in prison. He expressed how much he prayed and yearned for the people of Philippi and said how much he desired for them to increase in love, discernment, and the fruit of the Spirit (Philippians 1:1–11). He then assured them that "what has happened to me has really served to advance the gospel" (Philippians 1:12) because all of the prison guards came to know his testimony. Though he had desires of where he wanted to be and what he wanted to do, Paul’s ultimate concern was that the gospel was being shared (Philippians 1:15–18).
By the time Paul wrote this, he had already experienced great persecution and suffering for the sake of Christ. This is why, when he gets to Philippians 1:20–21, he says, "it is my eager expectation and hope that I will not be at all ashamed, but that with full courage now as always Christ will be honored in my body, whether by life or by death. For to me to live is Christ, and to die is gain." Most Christians will not be persecuted in ways as extreme as Paul was, yet we still experience the desire to be with our Savior in heaven (2 Corinthians 5:8). This desire, however, should never be an excuse for us to mentally check-out while here on earth and sit around waiting for heaven. We should be actively bringing honor and glory to God with our lives and staying engaged in advancing the kingdom of God here on the earth (Matthew 28:18–20; 2 Peter 3:8–13). Just as Paul sought to honor God in all aspects of his life and stay engaged in his present work, so should we. Then, for all of us, to live will be Christ and to die will be gain.