Acts 13:36

For David, when he had ministered to his generation in accordance with the will of God, fell asleep, and he was placed next to his fathers, and he saw corruption

Other versions

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.