On that night the king could not sleep, and he gave orders to bring the book of records, the annals, and they were read to the king.
It was found written how Mordecai had told about Bigthana and Teresh, two of the king's eunuchs, who guarded the threshold, and who had conspired to assassinate King Ahasuerus.
References for Esther 6:2
Then the king said, "What honor or distinction has been bestowed on Mordecai for this?" The king's servants who attended him said, "Nothing has been done for him."
The king said, "Who is in the court?" Now Haman had just entered the outer court of the king's palace to speak to the king about having Mordecai hanged on the gallows that he had prepared for him.
So the king's servants told him, "Haman is there, standing in the court." The king said, "Let him come in."
So Haman came in, and the king said to him, "What shall be done for the man whom the king wishes to honor?" Haman said to himself, "Whom would the king wish to honor more than me?"