Albert Barnes' Bible Commentary
Daniel 2:22
He revealeth the deep and secret things - Things which are too profound for man to fathom by his own power, and which are concealed or hidden until he makes them known. What is said here is an advance on what was affirmed in the previous verse, and relates to another kind of knowledge. “That” related to such knowledge as was not properly beyond the grasp of the human intellect when unaided in any supernatural manner, and affirmed that even then all discoveries and inventions are to be traced to God; “this” refers to a species of knowledge which lies beyond any natural compass of the human powers, and in which a supernatural influence is needed - such things as the Chaldeans and astrologers claimed the power of disclosing. The assertion here is, that when the highest human wisdom showed itself insufficient for the exigency, God was able to disclose those deep truths which it was desirable for man to understand. Applied generally, this refers to the truths made known by revelation - truths which man could never have discovered by his unaided powers.
He knoweth what is in the darkness - What appears to man to be involved in darkness, and on which no light seems to shine. This may refer not only to what is concealed from man in the literal darkness of night, but to all that is mysterious; all that lies beyond the range of human inquiry; all that pertains to unseen worlds. An immensely large portion of the universe lies wholly beyond the range of human investigation at present, and is, of course, dark to man.
And the light dwelleth with him - The word rendered “dwelleth” (שׁרא sherēl) means, properly, to loose, to unbind, to solve, as e. g., hard questions, Daniel 5:16; and is then applied to travelers who unbind the loads of their beasts to put up for the night, and then it comes to mean to put up for the night, to lodge, to dwell. Hence, the meaning is, that the light abides with God; it is there as in its appropriate dwelling-place; he is in the midst of it: all is light about him; light when it is sent out goes from him; when it is gathered together, its appropriate place is with him. Compare Job 38:19 :
“Where is the way where light dwelleth?
And as for darkness, where is the place thereof?
That thou shouldest take it to the bound thereof,
And that thou shouldest know the paths to the house thereof?”
See the note at that passage. Compare also 1 Timothy 6:16 : “Dwelling in the light which no man can approach unto.” 1 John 1:5 : “God is light, and in him is no darkness at all.”