He brought them to the king of Moab, and they stayed with him as long as David was living in his fortified camp.