The Messenger of Allah (SWT) said: "Seven deeds of a servant continue to be rewarded after his death while he is in his grave: knowledge to be learned, constructing a canal, digging a well, planting a date-palm tree, building a mosque, handing down a written copy of the Quran."