Here "treasures" refers to the boxes or bags they used to carry their treasures. AT: "the containers that held their treasures" (See: [[rc://en/ta/man/translate/figs-metonymy]])
# God warned them
"Afterwards, God warned the learned men." God knew that Herod wanted to harm the child.
This can be translated as a direct quotation. AT: "dream, saying, 'Do not go back to King Herod,' so" (See: [[rc://en/ta/man/translate/figs-quotations]])