I'm not Muslim (an agnostic Catholic if anything) but I love the Hadith
| If the final hour comes while one of you has a seed in his hand, if he can plant it before it takes place, let him do so.
I take it to mean it is never too late to do something good, even (or especially) something you will never benefit from.