1 Corinthians 2:10-12

this is what God has revealed to us by his spirit: for the spirit penetrates into all things, even the profound counsels of God.

James 1:5

If any of you is deficient in prudence, let him ask it of God, who liberally gives to all without upbraiding: and he will give it.

1 Corinthians 12:8

for to one the spirit gives the knowledge of the prophetical writings; to another the same spirit gives the knowledge of the doctrines of religion;

2 Timothy 3:16

for all divinely inspired writings are conducive to instruction, to conviction, to reformation, and the practice of virtue;

Treasury of Scripture Knowledge

Summary

But there is a spirit in man: and the inspiration of the Almighty giveth them understanding.

General references

Bible References

The inspiration

1 Corinthians 2:10
this is what God has revealed to us by his spirit: for the spirit penetrates into all things, even the profound counsels of God.
1 Corinthians 12:8
for to one the spirit gives the knowledge of the prophetical writings; to another the same spirit gives the knowledge of the doctrines of religion;
2 Timothy 3:16
for all divinely inspired writings are conducive to instruction, to conviction, to reformation, and the practice of virtue;
James 1:5
If any of you is deficient in prudence, let him ask it of God, who liberally gives to all without upbraiding: and he will give it.

General references

1 Corinthians 14:32
the prophetic gifts are to be subservient to the prophets.