Ta'if has been indirectly referred to in the Qur'an in verse 31 of Surah 43. The city was visited by the Islamic prophet, Muhammad, sometime in the early 7th century and was inhabited by the tribe of Banu Thaqif and is still inhabited to this day by their descendants. As a part of the Hejaz, the city has seen many transfers-of-power throughout its history, with the last being during the Saudi conquest of Hejaz in 1925.