This would be the definition of an obligation.
They're both connected because after the Holocaust ended, zionism began, which was a movement for Jewish people to find a place to build around their religion and be protected from any more events.
Al-Masjid an-Nabawi is located in Medina, making the city the second most sacred site in Islam, after Mecca