It will be said to the Mujahid: Take from his noble deeds whatever you like. Then the Messenger of Allah (ﷺ) turned to us and asked: What do you think (will he leave anything)? - (i. e. he will take away everything).
Sahih Muslim Book 33, Hadith 205