So he brought them before the king of Moab, and they stayed with him all the days David was in the stronghold.