There is a famine in the days of David for three years in a row, and David seeks the Lord. The Lord answers that it is because of Saul and his bloodthirsty house, because he put the Gibeonites to death. The Gibeonites were not of Israel but a remnant of the Amorites, to whom Israel had sworn protection, but Saul, in his zeal for Israel and Judah, had sought to wipe them out. David calls the Gibeonites and asks what he can do to make amends so that they will bless the inheritance of the Lord.
The Gibeonites say it is not a matter of silver or gold or of putting anyone in Israel to death, and ask that seven men of Saul's descendants be handed over to them to be hanged before the Lord at Gibeah of Saul. David agrees and spares Mephibosheth, Jonathan's son, because of the oath between them. He hands over the two sons of Rizpah and five grandsons of Saul, and the Gibeonites hang them on the mountain before the Lord at the beginning of the barley harvest.
Rizpah, daughter of Aiah, spreads sackcloth on the rock and watches over the bodies from the beginning of the harvest until rain falls from the sky, letting neither birds nor beasts touch them. When David hears, he gathers the bones of Saul and Jonathan, which were at Jabesh-gilead, and those of the hanged men, and buries them in the tomb of Kish at Zela in Benjamin. After that God was moved by the plea for the land.
There are new wars with the Philistines. David, weary, is threatened by a giant, Ishbi-benob, but Abishai comes to his aid and kills him. David's men swear that he will no longer go out to battle, so as not to quench the lamp of Israel. Other giants fall to Sibbecai, Elhanan and Jonathan, David's nephew, and it is said that these four were descended from the giants of Gath.