It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: The best among you are those who have the best character, provided they gain understanding (of the religion).
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 10240