قال الرازي: كان سبب طلب يحيى بن يحيى العلم، إنه كان يمر بزياد وهو يقول على أصحابه. فيميل إليه ويقعد عنده، فأعجبه ذلك زيادا، وأدناه يوما، وقال له: يا بني إن كنت عازما على التعلم فخذ من شعرك واصلح زيك. وكان يرى الخدمة، ففعل ذلك بحين، فسر به زياد واجتهد بتعليمه حتى برع تلاميذه. ثم قال له زياد بعد مدة: إن الرجال الذين حملنا العلم عنهم، يدفنون. وعجز بك أن تروي عمن دونهم. فخرج يحيى، بعد أن استسلف زياد له مالا. إذ رغب من مال أبيه، فحج وسمع مالكا، والليث. وكان لقاؤه لمالك سنة تسع وسبعين. السنة التي مات فيها مالك. وانصرف إلى الأندلس، فلم يلبث إلا يسيرا حتى هلك أبوه بمحله بالجزيرة. فأخذ ما طاب من مال أبيه، ثم عاد، فحج ولقي جملة أصحاب مالك، ثم انصرف. وذكر مثل هذا ابن حارث: إنه كانت ليحيى رحلتان من الأندلس. سمع في أولهما من مالك والليث وابن وهب، واقتصر في الأخرى على ابن القاسم وبه تفقه. وقال ابن الفرضي وأبو عمر بن عبد البر وغيرهما، وبعضهم يزيد على بعض: سمع يحيى لأول نشأته من زياد، موطأ مالك بن أنس، وسمع من يحيى بن مضر. ثم رحل وهو ابن ثمان وعشرين سنة. فسمع من مالك
Al-Razi said: The reason for Yahya ibn Yahya's seeking knowledge was that he used to pass by Ziyad while he was speaking [?] to his companions, and he would turn aside to him and sit with him. That pleased Ziyad, and one day he drew him near and said to him: My son, if you are resolved on learning, trim your hair and amend your dress. He used to follow the way of service [?]; and he did that at once, and Ziyad was pleased with him and exerted himself in teaching him until he surpassed his pupils. Then after a while Ziyad said to him: The men from whom we carried knowledge are being buried, and it would be a failing in you to transmit from those below them. So Yahya set out, after Ziyad had borrowed money for him, since he was averse to [?] his father's money; he performed the pilgrimage and heard Malik and al-Layth. His meeting with Malik was in the year 79, the year in which Malik died. He returned to al-Andalus and stayed only a little while before his father died at his post in al-Jazira. He took what was good of his father's money, then went back, performed the pilgrimage and met a number of Malik's companions, then returned. Ibn Harith mentioned the like of this: that Yahya had two journeys from al-Andalus; in the first of them he heard from Malik, al-Layth and Ibn Wahb, and in the other he confined himself to Ibn al-Qasim, and with him he studied jurisprudence. Ibn al-Faradi, Abu ʿUmar ibn ʿAbd al-Barr and others said — some of them adding to others: Yahya heard in his early youth from Ziyad the Muwattaʾ of Malik ibn Anas, and heard from Yahya ibn Mudar. Then he travelled at the age of twenty-eight, and heard from Malik