The Messenger of Allah ﷺ said, "Whoever among you is able to die in Madinah, let him do so, for I will bear witness for whoever dies there."
حدثنا بكر بن خلف حدثنا معاذ بن هشام حدثنا أبي عن أيوب عن نافع
قال رسول الله ﷺ من استطاع منكم أن يموت بالمدينة فليفعل فإني أشهد لمن مات بها
Its isnad is hasan. Tirmidhi transmitted it in Al-Manaqib, chapter on the virtue of Madinah, hadith 3917, from the hadith of Muaz, and he said it is hasan sahih, ghareeb. Ibn Hibban also graded it sahih (Mawarid, hadith 1031), and the hadith has corroborating narrations.