It is narrated from Sayyiduna Khuraym bin Fatik al-Asadi (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "People are of four kinds, and deeds are of six kinds: two that make (something) obligatory, one that is like for like, one that is tenfold, and one that is seven hundredfold. The two that make obligatory are these: whoever dies a Muslim, Paradise becomes obligatory for him; and whoever dies a disbeliever, Hell becomes obligatory for him. Like for like is that a servant intends a good deed and one good deed is written for him, and he intends an evil deed and is recompensed only with its like. A servant does a good deed and it is written for him tenfold, and a servant spends in the way of Allah and it is multiplied for him seven hundredfold. And people are of four kinds: one who is given ample means in this world and ample means in the Hereafter; second, one who is kept in straitness in this world and given ample means in the Hereafter; third, one who is given ample means in this world and kept in straitness in the Hereafter; and fourth, one who is wretched in both this world and the Hereafter."
Hadith Referenceالمعجم الكبير للطبراني / باب الخاء / 4136