Philippians 4:8
8 Finally, brothers, whatever is true, whatever is honorable, whatever is just, whatever is pure, whatever is lovely, whatever is commendable, if there is any excellence, if there is anything worthy of praise, think about these things.
Paul says whatever you find with these virtues to think on them. He does not say whatever you find within official canon of scripture.