King David reflects on the gradual, divine selection process that established his kingship and the ongoing chain of leadership. He outlines this history to clarify his standing before the nation. Although he was prevented from building the Temple because of the blood he shed in battle, this bloodshed is not considered a sin that disqualifies him from ruling. He remains God's chosen leader for his entire life [מצודת דוד]. Furthermore, his appointment was not necessarily a reward for being more righteous than his brothers, but rather the direct result of God's absolute will and sovereign choice [חומת אנך].
The historical progression of this divine choice unfolded in three narrowing stages [מלבי״ם]. The selection began at the tribal level, with Judah designated to produce the royal line [מצודת דוד]. The roots of this status trace back to the blessing Jacob gave his sons [רלב״ג]. Even during Jacob's lifetime, Judah naturally functioned as the head and leader of his brothers, despite not being the firstborn and lacking any official appointment [ביאור שטיינזלץ]. As the selection narrowed, the second stage focused within the tribe of Judah, specifically singling out the family of Jesse. Finally, the third stage occurred within that very household. Out of all of Jesse's sons, God chose David himself to rule over all the Israelites.
The continuation of this chosen lineage, passing from David to his son Solomon, carries profound spiritual significance and serves as a testament to David's personal purity. The very fact that Solomon was selected to continue the dynasty and sit upon God's throne serves as proof that David did not sin in the incident involving Bathsheba. A sin of forbidden relations causes direct harm to the Divine Presence. Had David been guilty of such an act, his son would never have merited to sit upon the royal throne, which is intimately bound to the Divine Presence [חומת אנך].