—his son al-Qāsim ibn Muḥammad, who never assumed the caliphal title. After al-ʿĀlī the succession passed to his son Muḥammad, but Muḥammad died in Málaga in 445 AH while his father was still alive. The Berbers then reinstated the father over Málaga and Granada, until the king of Seville, al-Muʿtaḍid ibn ʿAbbād, subdued them and the Idrisid state came to an end.
447 – ʿAbd Allāh ibn al-Walīd ibn Saʿd (1) ibn Bakr al-Anṣārī,
the imam and jurist, Abū Muḥammad al-Anṣārī, the Andalusian, the Mālikī, who settled in Egypt.
He heard hadith in Córdoba from Ismāʿīl ibn Isḥāq al-Qaṭṭān. In 384 AH he set out on his travels, studying the Sīra (prophetic biography) with Abū Muḥammad ibn Abī Zayd, as well as the Risāla (the Epistle). He also studied under Abū al-Ḥasan al-Qābisī and Abū Jaʿfar Aḥmad ibn Daḥmūn, and in Mecca he learned from Abū al-ʿAbbās ibn Bundār al-Rāzī and a number of others.
He ranked among the senior scholars.
Those who narrated from him include Abū al-Faḍl Jaʿfar ibn Ismāʿīl ibn Khalaf, Abū ʿAbd Allāh Muḥammad ibn Aḥmad al-Rāzī, and a group whom al-Silafī met; the latter relates the Sīra through a man who had received it from him.
It so happened that in the final part of his life he travelled to Syria, where he died a few months later, in the month of Ramaḍān of 448 AH (2).