“Not that I speak in respect of want: for I have learned, in whatsoever state I am, therewith to be content. I know both how to be abased, and I know how to abound: every where and in all things I am instructed both to be full and to be hungry, both to abound and to suffer need.”
— Philippians 4:11-12 (KJV)
Paul learned contentment in every situation — rich or poor, full or hungry. It's a skill you develop, not a feeling that just appears.