Answer
Medina was the city to which Ali al-Sajjad was permitted to return. After the Battle of Karbala, where his father, Husayn ibn Ali, was killed, Ali al-Sajjad was taken captive along with the women and children of Husayn's family. They were eventually brought to Medina, where they were allowed to settle.