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.
References for Esther 2:21
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.
References for Esther 2:23