God put Mordecai in a position to discover a plot to kill the King of Persia. He told Esther about the plot, and she told the king. As a result, Mordecai's name was recorded in the chronicles of the kingdom. God had good intentions then, and he still does now.