Holy Spirit inspired the scripture
Micah 3:8
“But truly I am full of power by the Spirit of the Lord, And of justice and might, To declare to Jacob his transgression And to Israel his sin.”
Micah 3:8 NKJV
https://bible.com/bible/114/mic.3.8.NKJV
2 Samuel 23:2
““The Spirit of the Lord spoke by me, And His word was on my tongue.”
II Samuel 23:2 NKJV
https://bible.com/bible/114/2sa.23.2.NKJV
Mark 12:36
“For David himself said by the Holy Spirit: ‘The Lord said to my Lord, “Sit at My right hand, Till I make Your enemies Your footstool.” ’”
Mark 12:36 NKJV
https://bible.com/bible/114/mrk.12.36.NKJV