God speaks to Abram while he is in a deep sleep (Genesis 15); God speaks to Abimelech, the king of Gerar, concerning his intentions regarding Sarah, Abraham's wife (Genesis 20); Jacob dreams of a ladder to heaven (Genesis 28); his son Joseph dreamed of his future success (Genesis 37), interpreted the dreams of Pharaoh of Egypt's cupbearer and baker while imprisoned (Genesis 40) and interpreted the dreams of the Pharaoh of Egypt (Genesis 41); Solomon conversed with God in his dreams (1 Kings 3); Daniel interpreted dreams (in the Book of Daniel 2 and 4); the Magi are told in a dream to avoid Herod on their journey home (Matthew 2); Joseph, when betrothed to Mary, was told not to fear taking Mary as his wife (Matthew 1); Joseph, now husband of Mary, was directed to flee with Mary and Jesus to Egypt (Matthew 2); Pilate's wife suffered in a dream because of Jesus (Matthew 27); Paul was told to go to Macedonia (Acts 16)