So David left his parents with the king of Moab, and they stayed there as long as David was hiding in the cave.