Php 3:7 But what things were gain to me, those I counted loss for Christ.
Php 3:8 Yea doubtless, and I count all things but loss for the excellency of the knowledge of Christ Jesus my Lord: for whom I have suffered the loss of all things, and do count them but dung, that I may win Christ,
Php 3:9 And be found in him, not having mine own righteousness, which is of the law, but that which is through the faith of Christ, the righteousness which is of God by faith:
Php 3:10 That I may know him, and the power of his resurrection, and the fellowship of his sufferings, being made conformable unto his death;
Php 3:11 If by any means I might attain unto the resurrection of the dead.
3:7 is so important I have it there again. Paul goes on to discuss why he counts it all as a loss compared to Jesus. He counts all the things he's lost as "dung" that he might wing Christ. Why? He wants to attain the resurrection of the dead. He wants to join Jesus in Heaven forever. He's done some long term analysis and sees that that's really the way to go.
We can lose everything here from our homes to our jobs to even those we love, and we still have God. We still can have Heaven to look forward to.