Job 33:15-18 King James Version (KJV)
15 In a dream, in a vision of the night, when deep sleep falleth upon men, in slumberings upon the bed;
16 Then he openeth the ears of men, and sealeth their instruction,
17 That he may withdraw man from his purpose, and hide pride from man.
18 He keepeth back his soul from the pit, and his life from perishing by the sword.