Al-As'am first appears as a commander of the Qarmatian forces that captured Damascus and defeated the Ikhshidid governor, al-Hasan ibn Ubayd Allah ibn Tughj in battle before his capital, Ramla, on 28 October.