In the New Testament God continues to speak to His people through dreams to tell them about the Messiah, to warn them and to encourage them. When the Messiah was born God spoke to many people in dreams, just as He had done in the Torah. The three wise men that came and visited Yeshua were warned in a dream not to go back to Herod (Matthew 2:12). Joseph of Nazareth had four dreams from God. One in which an angel came to him and told him not to be afraid to take Mary as his wife, and that she was pregnant from the Holy Spirit (Matthew 1:20-24). Joseph did not doubt that his dream was from God and obeyed what God told him. In the second dream, an angel of God appeared to Joseph again and told him to flee to Egypt (Matthew 2:13). Then when he was in Egypt, the Lord appeared again to Joseph in a dream and told him to go back to Israel (Matthew 2:19). Then he had another dream in which God to withdraw to the Galilee (Matthew 2:22).
Then Joseph being raised from sleep did as the angel of the Lord had bidden him, and took unto him his wife. Matthew 1:24
Later in the New Testament there are many more dreams. In Matthew 27:19 Pilates wife had a dream saying she suffered greatly because of the things that happened to Jesus. The apostles also had many dreams, in which God taught them things. In Acts 10:10 Peter had a dream/vision in which he saw all kinds of unclean animals. Later Paul had a night vision in which a man from Macedonia came to him to ask for help. Acts 16:9 And a vision appeared to Paul in the night; There stood a man of Macedonia, and prayed him, saying, Come over into Macedonia, and help us. Some believe the entire book of Revelation was given in dream/vision.