Jeremiah had given advice to Jews living in exile in Babylon (Jeremiah 29:4–7). Daniel followed that advice. He worked hard for the success of the city where he was living in exile. God gave him success in his work.
Daniel was a leader over many rulers in Babylonia. The other leaders and rulers were jealous of him. The law about only praying to Darius the Mede was a trap to harm Daniel. This wasn’t the same ruler called Darius mentioned in the book of Ezra. But Daniel continued to be faithful to the Mount Sinai covenant. He continued to pray only to God. The room where he prayed faced the direction of Jerusalem.
Solomon had talked about praying in the direction of the temple (1 Kings 8:48–49). God’s people who lived far away from Jerusalem could do that. It would help them be sure that God heard their prayers and would help them. Praying to God meant that Daniel would be put to death for not obeying Darius. Darius didn’t want Daniel to be harmed. But he followed the law that he had made. He ordered that Daniel be put to death.
Darius was very happy that what he ordered didn’t happen. God sent an angel to protect Daniel. This showed Darius that the God of Daniel had more power than he did. Darius understood that Daniel’s God had complete power on earth and in heaven.