Nadal will eventually get some sort of career ending injury and have to retire, it’s inevitable . Could be anytime or anywhere , he won’t really have a say.
Djokovic will retire whenever he is a few slams clear or knows he can no longer be caught, either way he will play longer than Nadal.