King James Version
And he brought them before the king of Moab: and they dwelt with him all the while that David was in the hold.English Standard Version
And he left them with the king of Moab, and they stayed with him all the time that David was in the stronghold.New International Version
So he left them with the king of Moab, and they stayed with him as long as David was in the stronghold.