The Holy Spirit moved holy men of God to speak and to write the word of God. When we read the Scripture, we are reading the mind of God revealed. Listen to the Holy Spirit; read His word.
2 Peter 1:16-21; NKJV
16 For we did not follow cunningly devised fables when we made known to you the power and coming of our Lord Jesus Christ, but were eyewitnesses of His majesty.
17 For He received from God the Father honor and glory when such a voice came to Him from the Excellent Glory:"This is My beloved Son, in whom I am well pleased."
18 And we heard this voice which came from heaven when we were with Him on the holy mountain.
19 And so we have the prophetic word confirmed, which you do well to heed as a light that shines in a dark place, until the day dawns and the morning star rises in your hearts;
20 knowing this first, that no prophecy of Scripture is of any private interpretation,
21 for prophecy never came by the will of man, but holy men of God spoke as they were moved by the Holy Spirit.