Ibn Ghanm's successor as governor of Raqqa and the Jazira, Sa'id ibn Amir ibn Hidhyam, built the city's first mosque. The building was later enlarged to monumental proportions, measuring some , with a square brick minaret added later, possibly in the mid-10th century. The mosque survived until the early 20th century, being described by the German archaeologist Ernst Herzfeld in 1907, but has since vanished. Many companions of Muhammad lived in Raqqa.