That is exactly what the Bible says:
For the prophecy came not in old time by the will of man: but holy men of God spake as they were moved by the Holy Ghost. (2 Pet 1:21).
Now please note what is stated in Heb 3:8: Wherefore (as the Holy Ghost saith, To day if ye will hear his voice, Harden not your hearts, as in the provocation, in the day of temptation in the wilderness.
But when we turn to Psalm 95:7,8, we find that it is David who wrote this under divine inspiration, therefore these words are attributed directly to the Holy Spirit: For he is our God; and we are the people of his pasture, and the sheep of his hand. To day if ye will hear his voice, Harden not your heart, as in the provocation, and as in the day of temptation in the wilderness:
How do we know David wrote this, but the words were the words of the Holy Spirit? See Hebrews 4:7, which was written under divine inspiration by Paul, so these are also the words of the Holy Spirit: Again, he limiteth a certain day, saying in David, To day, after so long a time; as it is said, To day if ye will hear his voice, harden not your hearts.