Ammar, his father, and Saad appear before the judge, who sentences them to treason, but Muharib pardons them, and Sultan returns to the oasis.