And he brought them before the king of Moab; and they abode with him all the while that David was in the stronghold.