ou should recall from Esther 2:21-23 that Mordecai was responsible for saving the life of King Ahasuerus. And, his service to the king had been recorded in the royal chronicles. God had been laying the groundwork for a grand rescue. Well, the time had come for Him to use the record of Mordecai's good deed.
King Ahasuerus couldn't sleep. Maybe he was thinking about his wife and the game she was evidently playing with him with her banquets and such. Maybe curiosity was the immediate cause of his insomnia. One thing is for sure though. God wanted him to be awake, so he was awake. And, as he paced the floor, he had the chronicles of his reign read to him. In that circumstance, he was reminded of what Mordecai had done for him.
Now, Haman was so incensed about what he perceived as insubordination from Mordecai, that he had made the trip over to the king's house to get permission to hang Mordecai. And, the king was at that very moment trying to think of something nice to do for Mordecai. So, before Haman had a chance to present his petition, the king assigned him the task of honoring the very man that he hated most. Don't you think God was doing a little chuckling as He orchestrated this turn of events? Especially since Haman was the one who came up with the plan for just how to honor Mordecai. Of course, he thought his idea would be used on him, not on his enemy. Again... what irony! It was poetic justice at its best.