 The Bani Khalid claimed descent from Ibn al-Walid and the accompanying tribes that participated in the conquest of Syria under his command.However, their claim of ancestry had been previously refuted by the Mamluk-era historian al-Qalqashandi.The present-day mosque was built in the early 20th century, although some sources claim it dates to the late 19th century.