Because he understood the greatness of God, Paul could say from house arrest…

“Not that I am speaking of being in need, for I have learned in whatever situation I am to be content. I know how to be brought low, and I know how to abound. In any and every circumstance, I have learned the secret of facing plenty and hunger, abundance and need. I can do all things through him who strengthens me.” Philippians 4:11-13 ESV
Dwell in him, he will give you contentment.