The aforementioned hadith was narrated with the same chain and the same meaning, except with these additional words: I was ill in Makkah and he (peace and blessings be upon him) came to visit me, and he (Sa'd) disliked that his death should occur in the same land from which he had emigrated. Then the Prophet (peace and blessings be upon him) said: "O Ibn Afra'! May Allah have mercy on you." Then he narrated the whole hadith.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17781