If worshippers prostrate inside prayer on hearing an outsider, what are the two rulings?

Prostration of Recitation: Locations, Obligation, Hearing and Performance