This passage makes real sense because why would we want to choose to ponder over anything that brings negativity or sadness?
Philippians 4:8-9 New International Version (NIV)
8 Finally, brothers and sisters,
whatever is true,
whatever is noble,
whatever is right,
whatever is pure,
whatever is lovely,
whatever is admirable—if anything is excellent or praiseworthy—
think about such things.
9 Whatever you have learned or received or heard from me, or seen in me—put it into practice.
And the God of peace will be with you.