Where it showd in the Bible that 40 people wrote bible by the inspiration of the Holy Spirit?

2Timothy 3:16 " All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness."

2Samuel 23:2 " The spirit of the Lord spake by me, and his word was in my tongue."
2Timothy 3:16 " All scripture is given by inspiration of God, and is profitable for doctrine, for reproof, for correction, for instruction in righteousness."

2Samuel 23:2 " The spirit of the Lord spake by me, and his word was in my tongue."