ESV: When David 's time to die drew near, he commanded Solomon his son, saying,
NIV: When the time drew near for David to die, he gave a charge to Solomon his son.
NASB: As David’s time to die drew near, he commanded his son Solomon, saying,
CSB: As the time approached for David to die, he ordered his son Solomon,
NLT: As the time of King David’s death approached, he gave this charge to his son Solomon:
KJV: Now the days of David drew nigh that he should die; and he charged Solomon his son, saying,
NKJV: Now the days of David drew near that he should die, and he charged Solomon his son, saying: