The Prophet Muhammad once said that on the Day of Judgement, a man’s foot would not move unless he had answered four questions: Where he earned his money from, and where he spent it; how he spent his youth and how he used his knowledge.
The Heifer (Al-Baqarah) 2:153–157