He left them with the king of Moab; they stayed with him as long as David remained in the stronghold.