2 Samuel 21:7

7 and the king hath pity on Mephibosheth son of Jonathan, son of Saul, because of the oath of Jehovah that [is] between them, between David and Jonathan son of Saul;

2 Samuel 21:7 Meaning and Commentary

2 Samuel 21:7

But the king spared Mephibosheth, the son of Jonathan, the son
of Saul
As they did not name particular persons, only required seven sons, it was at the option of the king what sons to deliver to them, and therefore kept back Mephibosheth, who is thus described, to distinguish him from a son of Saul's of the same name, after mentioned:

because of the Lord's oath that [was] between them, between David and
Jonathan the son of Saul;
not merely or only out of affection to Mephibosheth, but because of the oath, that he might not be guilty of the same crime Saul was in slaying the Gibeonites.

2 Samuel 21:7 In-Context

5 And they say unto the king, `The man who consumed us, and who devised against us -- we have been destroyed from stationing ourselves in all the border of Israel --
6 let there be given to us seven men of his sons, and we have hanged them before Jehovah, in the height of Saul, the chosen of Jehovah.' And the king saith, `I do give;'
7 and the king hath pity on Mephibosheth son of Jonathan, son of Saul, because of the oath of Jehovah that [is] between them, between David and Jonathan son of Saul;
8 and the king taketh the two sons of Rizpah daughter of Aiah, whom she bore to Saul, Armoni and Mephibosheth, and the five sons of Michal daughter of Saul whom she bare to Adriel son of Barzillai the Meholathite,
9 and giveth them into the hand of the Gibeonites, and they hang them in the hill before Jehovah; and the seven fall together, and they have been put to death in the days of harvest, in the first [days], the commencement of barley-harvest.
Young's Literal Translation is in the public domain.