It will be very wrong for anyone to take EVERYTHING in the Bible and assume it’s all the word of God.
In the Bible,
Men spoke- both godly and ungodly
Even animals spoke.
And all were recorded.
Out of the at least 6 possibility of speakers, only 1 is God. (Yes we know there were times both Angels and men spoke for God, so we count when they spoke accurately for God as God speaking and other times as just them.)
Therefore even when men and Angels spoke for God, we still have to check how much of it accurately represents God and how it concerns us.
So in studying the Bible, you have to carefully check:
1. What was spoken/written
2. Who spoke/wrote
3. The exact words/grammar used
4. To whom it was spoken/written
5. At what time it was spoken/written
6. Where it was spoken/written
7. Why it was spoken/written
8. The circumstances in which it was spoken/written
Not everything written in the Bible concerns you. You have to study, not just study, but rightly do so.
2 Timothy 2:15
Study to shew thyself approved unto God, a workman that needeth not to be ashamed, RIGHTLY DIVIDING the word of truth.