Job 33:15-17

15 In a dream, in a vision of the night, when deep sleep falls on men, in slumberings on the bed;

16 Then he opens the ears of men, and seals their instruction,

17 That he may withdraw man from his purpose, and hide pride from man.