Typically, we go to God because we want things. That may be why Satan challenged God over Job: if God took away the lots of possessions He had given to Job, Job would curse God (Job 1:9-11). But after God allowed Satan to take from Job everything other than his wife (Job 1:12-13), Job still praised God because he knew he could not take anything with him when he died, and everything was in God’s hands (Job 1:21).
The Bible teaches us to rejoice in the Lord always—in health, sickness, wealth, or poverty (Philippians 4:4). For example, David glorified God in the desert of Judah and considered God’s love better than life (Psalm 63:3-5). When Habakkuk had nothing, not even food, he still was joyful in God and considered God his Savior (Habakkuk 3:17-18).
Why should we still be joyful in God when externally we are in desperate shape?
First, know that God is the Almighty and He loves us.
God is the Almighty who created the universe, and He loves us. He sent us His beloved Son so we may live. Christ suffered not to bring us wealth or fame; He suffered to bring us back to God.
Hence, we should focus on God, the Creator, not the things He created. All things we enjoy should point us to the Almighty. We should treasure and love God above everything.
If we love Him, we should do what He wants us to do (John 14:15), though we know the essence of loving is not in performing tasks.
If we love God, we should love our neighbors as fellow image-bearers of God. Paul described the Macedonian Christians as being very generous even when they were in severe trial and probably in poverty (2 Corinthians 8:1-2).
Treasuring God over all things means considering Him as the most desirable, giving us the most satisfaction.
When we are most satisfied in God, He is most glorified in us. Glorifying Him is the main reason of our existence (Isaiah 26:8, Philippians 1:20-21). Pray and ask the Holy Spirit to help you so that God is your ultimate delight and enjoyment.
Summarized from a sermon by John Piper: