There was a famine for three years in a row during David's rule. David asked the LORD about this, and the LORD said, "It is caused by Saul and his household, who are guilty of bloodshed because he killed the people of Gibeon."
References for 2 Samuel 21:1
So the king called for the Gibeonites and spoke to them. (Now the Gibeonites weren't Israelites but were survivors of the Amorites. The Israelites had sworn a solemn pledge to spare them, but Saul tried to eliminate them in his enthusiasm for the people of Israel and Judah.)
David said to the Gibeonites, "What can I do for you? How can I fix matters so you can benefit from the LORD's inheritance?"
The Gibeonites said to him, "We don't want any silver or gold from Saul or his family, and it isn't our right to have anyone in Israel killed." "What do you want?" David asked. "I'll do it for you."
References for 2 Samuel 21:4
"Okay then," they said to the king. "That man who opposed and oppressed us, who planned to destroy us, keeping us from having a place to live anywhere in Israel—
References for 2 Samuel 21:5
hand over seven of his sons to us, and we will hang them before the LORD at Gibeon on the LORD's mountain." "I will hand them over," the king said.
References for 2 Samuel 21:6
But the king spared Mephibosheth, Jonathan's son and Saul's grandson, because of the LORD's solemn pledge that was between them—between David and Saul's son Jonathan.
So the king took the two sons of Aiah's daughter Rizpah, Armoni and Mephibosheth, whom she had birthed for Saul; and the five sons of Saul's daughter Merab, whom she birthed for Adriel, Barzillai's son, who was from Meholah,
References for 2 Samuel 21:8
and he handed them over to the Gibeonites. They hanged them on the mountain before the LORD. The seven of them died at the same time. They were executed in the first days of the harvest, at the beginning of the barley harvest.
Aiah's daughter Rizpah took funeral clothing and spread it out by herself on a rock. She stayed there from the beginning of the harvest until the rains poured down on the bodies from the sky, and she wouldn't let any birds of prey land on the bodies during the day or let wild animals come at nighttime.
When David was told what Aiah's daughter Rizpah, Saul's secondary wife, had done,
he went and retrieved the bones of Saul and his son Jonathan from the citizens of Jabesh-gilead, who had stolen the bones from the public square in Beth-shan, where the Philistines had hanged them on the day the Philistines killed Saul at Gilboa.
David brought the bones of Saul and his son Jonathan from there and collected the bones of the men who had been hanged by the Gibeonites.
The bones of Saul and his son Jonathan were then buried in Zela, in Benjaminite territory, in the tomb of Saul's father Kish. Once everything the king had commanded was done, God responded to prayers for the land.
Once again war broke out between the Philistines and Israel. David and the soldiers who were with him went down and fought the Philistines. When David grew tired,
References for 2 Samuel 21:15
Ishbi-benob, a descendant of the Raphah, planned on killing David. The weight of his spear was three hundred shekels of bronze, and he was wearing new armor.
References for 2 Samuel 21:16
But Zeruiah's son Abishai came to David's aid, striking the Philistine down and killing him. Then David's men swore a solemn pledge to him: "You will never march out to battle with us again! You must not snuff out Israel's lamp!"
Some time later, another battle with the Philistines took place at Gob. Then Sibbecai from Hushah killed Saph, a descendant of the Raphah.
There was yet another battle with the Philistines at Gob; and Elhanan, Jair's son from Bethlehem, killed Goliath from Gath, whose spear shaft was as strong as the bar on a weaver's loom.
References for 2 Samuel 21:19
In another battle at Gath, there was a huge man who had six fingers on his hands and six toes on his feet, twenty-four in all. He too was descended from the Raphah.
References for 2 Samuel 21:20
When he insulted Israel, Jonathan, who was the son of David's brother Shimei, killed him.
These four Philistines were descended from the Raphah in Gath, and they fell by the hands of David and his servants.