It is reported that ‘Alī b. Abī Ṭālib – Allāh be pleased with him – said:
Goodness is not in your wealth and offspring being plentiful; true goodness is when your [good] deeds are plenty and you have great understanding and forbearance, and when you compete to worship your Lord. If you do good you praise Allāh and thank Him, and if you sin you beg Allāh’s forgiveness. There is no good in this life except with two types of men: A man who sins but then corrects himself through repentance, and a man who strives and hastens to get [the good] of the hereafter.
Ibn ‘Asākir, Al-Tawbah article 13.