1 Kings 16:18
16 While deployed there, the army received this report: “Zimri has conspired against the king and assassinated him.” So all Israel made Omri, the commander of the army, king over Israel that very day in the camp. 17 Omri and all Israel went up from Gibbethon and besieged Tirzah. 18 When Zimri saw that the city was captured, he went into the fortified area of the royal palace. He set the palace on fire and died in the flames. 19 This happened because of the sins he committed. He did evil in the sight of the Lord and followed in Jeroboam’s footsteps and encouraged Israel to continue sinning. 20 The rest of the events of Zimri’s reign, including the details of his revolt, are recorded in the scroll called the Annals of the Kings of Israel.
Matthew 27:5
3 Now when Judas, who had betrayed him, saw that Jesus had been condemned, he regretted what he had done and returned the 30 silver coins to the chief priests and the elders, 4 saying, “I have sinned by betraying innocent blood!” But they said, “What is that to us? You take care of it yourself!” 5 So Judas threw the silver coins into the temple and left. Then he went out and hanged himself. 6 The chief priests took the silver and said, “It is not lawful to put this into the temple treasury, since it is blood money.” 7 After consulting together they bought the Potter’s Field with it, as a burial place for foreigners.
Notes and References
"... Ahithophel’s suicide is recorded in 2 Samuel 17:23: “When Ahithophel saw that his counsel was not followed, he saddled his donkey and went off home to his own city. He set his house in order, and hanged himself.” Ahithophel’s radical action to end his own life came as a result of Absalom’s failure to heed Ahithophel’s advice to pursue David and overtake him before David regrouped (2 Samuel 17:1–3). When Absalom chose the advice of Hushai over Ahithophel, Ahithophel knew it was only a matter of time before David would regain the throne and exact vengeance for Ahithophel’s betrayal. While there are a number of suicides within the Old Testament, his is the only suicide by hanging. (Judges 9:54; 1 Samuel 31:4-5; 1 Kings 16:18) The Gospel of Matthew details Judas’ remorse after his betrayal, his confession to the religious leaders, throwing of the thirty silver pieces into the temple, and subsequent suicide by hanging (27:3–10).36 There have been numerous scholars who have drawn a connection between Judas’ death and the death of Ahithophel, with just as many detractors. Raymond Brown went so far as to state that “the Ahithophel story generated Matthew’s account of suicide by hanging.” It is more likely that the author of Matthew has passed on the tradition received regarding Judas’ death and not created it, and then crafted his narrative to display this typological connection ..."
Zacharias, Hermann Daniel Matthew's Presentation of The Son of David: Davidic Tradition and Typology in the Gospel of Matthew (pp. 184-185) University of the Highlands and Islands, 2015