It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The most complete of people in faith is the one who is best of them in character, and indeed good character takes (a person) to the rank of fasting and prayer."
Related hadith on this topic