Possible meanings are 1) Here David is a metonym for David and his descendants who will rule Israel forever. AT: "chose me and my descendants ... to be kings over Israel forever." or 2) David will continue to be the king of Israel after he is resurrected from the dead. (See: [[rc://en/ta/man/translate/figs-metonymy]])