«إذا جئتم الصلاة ونحن سجودا فاسجدوا ولا تعدوها شيئا ومن أدرك الركعة فقد أدرك الصلاة»
The Prophet (peace and blessings be upon him) said:
"When you come to the prayer while we are in prostration, then prostrate too, but do not count it as anything (i.e. as a rak'ah); and whoever catches the rak'ah has caught the prayer."