King James Version
For David, after he had served his own generation by the will of God, fell on sleep, and was laid unto his fathers, and saw corruption:English Standard Version
For David, after he had served the purpose of God in his own generation, fell asleep and was laid with his fathers and saw corruption,New International Version
"For when David had served God's purpose in his own generation, he fell asleep; he was buried with his fathers and his body decayed.