The great and most famous scholar from the city of Madinah was Imam Malik ibn Anas:
He took knowledge from Imam Jafar al-Sadiq and said:
‘Most certainly, Imam Jafar al-Sadiq was among the pious [Ascetic] scholars who truly fear Allah.’
و قد أخذ عن الإمام جعفر الصادق رضي الله عنه الإمام مالك في المدينة و قال عنه : إنه كان من العلماء الزهاد الذين يخشون الله
(Related by Imam Abu Nu’aym – Hilyatul’ Awliyah – The Adornment of The Friends of Allah)
Allah be well pleased with them.