Joseph woke up from his sleep (ἐγερθεὶς δὲ ὁ Ἰωσὴφ ἀπὸ τοῦ ὕπνου), when he had this dream about the angel of the Lord. Then he did (ἐποίησεν) what the angel of the Lord (ὁ ἄγγελος Κυρίου) had told him or commanded him (ὡς προσέταξεν αὐτῷ) to do. Joseph took the word of the Lord’s messenger angel very seriously. He saw it as a command, something that he must do. Thus, he changed his mind about his future engaged wife. He was going to receive or accept Mary as his wife (παρέλαβεν τὴν γυναῖκα αὐτοῦ), despite his previous misgivings. Clearly, Joseph was a man of faith who trusted in the words of the unnamed angel of the Lord that he had heard in his dream.
When the king of Nineveh heard about the proclamations of Jonah, he rose from his throne and took off his royal robes. He then covered himself with sackcloth and sat in ashes. The use of the common sack cloth used for carrying vegetables instead of better clothes was a sign of mourning and repentance. Like a good king, he was going along with his subjects who took the warnings of Jonah very seriously.