Djokovic might retire shortly after he inevitably gets the slam record. Only in a scenario where Alcaraz looks like a threat for breaking Djokovic' record, would Djokovic be motivated enough to keep on playing.
I can't help but feel Nadal is very close to retirement, I'm not sure he'll finish any tournament in his career anymore. He will probably not play for the remainder of the year, and then quit RG 2023 during the tournament due to injury, and then we won't hear from him for a long time, until he ends up announcing he's retiring.