Paul was in prison when he wrote this and had a very uncertain future.
Philippians 4:4-7
4Rejoice in the Lord always: and again I say, Rejoice.
5Let your moderation be known unto all men. The Lord is at hand.
6Be careful for nothing; but in everything by prayer and supplication with thanksgiving let your requests be made known unto God.
7And the peace of God, which passeth all understanding, shall keep your hearts and minds through Christ Jesus.