It is narrated from Sayyiduna Abu Barzah Aslami (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "The feet of any servant will not move on the Day (of Resurrection) until he is asked: In what did you spend your life? How much did you act upon your knowledge? From where did you earn your wealth and in what did you spend it? And in what (work) did you use your body?"
Related hadith on this topic