Traveling to graves is forbidden
It is narrated from Abu Hurayrah (may Allah be pleased with him) that the Prophet ﷺ said:
لا تشد الرحال إلا إلى ثلثة مساجد المسجد الحرام ومسجد الرسول ومسجد اقصي
“Journeys should not be undertaken except to three mosques: the first, Masjid al-Haram; the second, the Prophet’s Mosque; and the third, Masjid al-Aqsa.”
Reference: Bukhari: 1189, Kitab Fadl al-Salah fi Makkah wa al-Madinah: Bab Fadl al-Salah fi Masjid Makkah wa al-Madinah