وقد كان يحيى بن علي المذكور قبل، وقد اعتقل ابني عمه محمدا والحسن ابني القاسم بن حمود بالجزيرة، وكان الموكل بهما رجل من المغاربة يعرف بأبي الحجاج، حين وصل إلى خبر قتل يحيى جمع من كان في الجزيرة من المغاربة والسودان وأخرج محمدا والحسن وقال: هذان سيداكم فسلم جميعهم إلى الطاعة لشدة ميل أبيهما إلى السودان قديما وإيثاره لهم وانفرد محمد بالأمر وملك [الجزيرة] إلا أنه لم يتسم بالخلافة، وبقي معه أخوه حسن مدة إلى أن حدث له رأى في التنسك فلبس الصوف، وتبرأ عن الدنيا، وخرج إلى الحج مع أخته فاطمة بنت القاسم زوجة يحيى بن علي المعتلي، فلما مات إدريس كما ذكرنا رام ابن بقنة ضبط الأمر لولده يحيى بن إدريس المعروف بحيون، ثم لم يجسر على ذلك الجسر التام، وتحير وتردد.
Yahya ibn ʿAli, mentioned before, had imprisoned his two cousins Muhammad and al-Hasan, the sons of al-Qasim ibn Hammud, in al-Jazira. The one in charge of them was a man of the Maghariba known as Abu l-Hajjaj. When the news of Yahya's killing reached [?], he gathered the Maghariba and the blacks who were in al-Jazira, brought out Muhammad and al-Hasan, and said: These are your two lords. All of them submitted to obedience, because of their father's strong inclination of old toward the blacks and his favouring them. Muhammad took sole power and ruled [al-Jazira], but he did not take the title of caliph. His brother Hasan remained with him for a time, until he was moved to devotion: he put on wool, renounced the world, and went out on pilgrimage with his sister Fatima bint al-Qasim, wife of Yahya ibn ʿAli al-Muʿtali. When Idris died, as we mentioned, Ibn Baqanna tried to secure power for his son Yahya ibn Idris, known as Hayyun; but then he did not dare to do it with full daring, and was perplexed and hesitated.
ولما وصل جبر قتل إسماعيل بن عباد وموت إدريس بن علي إلى "نجا" الصقلبين بسبتة استخلف عليها من وثق به من الصقالبة، وركب البحر هو وحسن بن يحيى إلى مالقة ليرتب الأمر [له] ، فلما وصلا إلى مرسى مالقة خارت قوى ابن بقنة وهرب إلى حصن كمارش على ثمانية عشر ميلا من مالقة، ودخل حسن ونجا مالقة [واجتمع إليهما من بها من البربر فبايعوا] حسن بن يحيى بالخلافة وتسمى بالمستنصر.
When the news [?] of the killing of Ismaʿil ibn ʿAbbad and the death of Idris ibn ʿAli reached "Naja" the Saqlabi in Sabta, he appointed as his deputy over it one of the Saqaliba whom he trusted, and took ship, he and Hasan ibn Yahya, to Malaqa, to arrange the matter [for him]. When they reached the harbour of Malaqa, Ibn Baqanna's strength gave way and he fled to the fort of Kumarish, eighteen miles from Malaqa. Hasan and Naja entered Malaqa, [and the Berbers who were there gathered to them and pledged allegiance] to Hasan ibn Yahya as caliph, and he took the title al-Mustansir.