Dawud bin al-Husayn narrates from Ibn Abbas (may Allah be pleased with him) that there is no harm in praying along with the imam in the courtyard of the mosque and on its paved ground.