Syria's President Bashar al-Assad made a rare appearance on Sunday to attend prayers at a mosque in the capital Damascus, state television reported.