God's promise to us has never been that He would make life easy. What He has promised is that "He would never leave us nor forsake us" (Hebrews 13:5) and that if we are one of His, He would discipline us because He loves us (Hebrews 12:5) to make us more like Jesus (Romans 8:28-29). Those truths have been very evident in the Daniel account of Israel's history and the prophecies God has given there of Israel's future.
As we continue to study through Daniel 11 and 12, we see both God's judgment and His promise to not abandon but to ultimately refine and redeem His people Israel. History shows that we can count on this being true, and as Christians, we can count on it being true for us also. This passage illustrates that while God may allow those of us who are His children to face the consequences of our actions (see last week's message), it is always with a good end. We also see that while evil may triumph for a time, God and His righteousness will ultimately triumph.