Prophet Muhammad (SAW) went to Ta'if in 620 AD to reach out and seek support and shelter for amateur Muslims beyond the city of Makkah.