Genesis 20:3-6

20:3 But God appeared to Abimelech in a dream at night and said to him, “You are as good as dead because of the woman you have taken, for she is someone else’s wife.”

20:4 Now Abimelech had not gone near her. He said, “Lord, would you really slaughter an innocent nation? 20:5 Did Abraham not say to me, ‘She is my sister’? And she herself said, ‘He is my brother.’ I have done this with a clear conscience and with innocent hands!”

20:6 Then in the dream God replied to him, “Yes, I know that you have done this with a clear conscience. That is why I have kept you from sinning against me and why I did not allow you to touch her.

Genesis 31:24

31:24 But God came to Laban the Aramean in a dream at night and warned him, “Be careful that you neither bless nor curse Jacob.”

Genesis 31:29

31:29 I have the power to do you harm, but the God of your father told me last night, ‘Be careful that you neither bless nor curse Jacob.’

Job 33:14-17

Elihu Disagrees With Job’s View of God

33:14 “For God speaks, the first time in one way,

the second time in another,

though a person does not perceive it.

33:15 In a dream, a night vision,

when deep sleep falls on people

as they sleep in their beds.

33:16 Then he gives a revelation to people,

and terrifies them with warnings,

33:17 to turn a person from his sin,

and to cover a person’s pride.

Proverbs 29:1

29:1 The one who stiffens his neck after numerous rebukes

will suddenly be destroyed without remedy.