But Mordecai learned of the plot and told Queen Esther, who then told King Xerxes, giving credit to Mordecai. When the thing was investigated and confirmed as true, the two men were hanged on a gallows. This was all written down in a logbook kept for the king's use.
When Mordecai learned of the plot, he reported it to Queen Esther, and she told the king on Mordecai's behalf.
Esther 2:22 In-Context
But Esther had kept secret her family background and nationality just as Mordecai had told her to do, for she continued to follow Mordecai’s instructions as she had done when he was bringing her up.
During the time Mordecai was sitting at the king’s gate, Bigthana and Teresh, two of the king’s officers who guarded the doorway, became angry and conspired to assassinate King Xerxes.
But Mordecai found out about the plot and told Queen Esther, who in turn reported it to the king, giving credit to Mordecai.
And when the report was investigated and found to be true, the two officials were impaled on poles. All this was recorded in the book of the annals in the presence of the king.