I heard Abū al-Qāsim (the Prophet) ﷺ say, "The best of you in Islam are those with the best character, if they have a good ˹religious˺ understanding." (Using translation from Aḥmad 10066)
سَمِعْتُ أَبَا الْقَاسِمِ يَقُولُ خِيَارُكُمْ أَحَاسِنُكُمْ أَخْلَاقًا إِذَا فَقِهُوا