Mahmud ibn Sa'd ( '; ) was an architect who lived in the 13thâÂÂ14th centuries. Among his works are old Bibi-Heybat Mosque (demolished in 1936), Nardaran Fortress and Molla Ahmad Mosque in Baku's Old City, all three in the modern-day Republic of Azerbaijan.