It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "People are of three kinds: salim (the one who is saved), ghanim (the one who gains) and shajib (the one who is ruined)."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 14908