When we work with the Lord, for how long does He use our service?
Acts 13:36 says that King David 'served God's purpose in his own generation' and after that he died. He did what the Lord wanted him to do while he was alive.
There was nothing more he could do, but the Bible unpacks how the Lord continued to use David's example (both good and bad), his human family line (mostly bad with a handful of good examples), and his writings (mostly in 75 Psalms), right up to the present day.