Ten years pass since the imprisonment of Ya'qub ibn Dawud, and when Caliph al-Ma'mun learns of his case, he orders his release and sends him to Mecca with his family in implementation of his wish.