Section VII: Ending the Prayers with Salams While Forgetting To Perform the Prostration of Forgetfulness
Firstly: Ruling of remembering the prostration of forgetfulness after the salams when a long time has passed
If a person offering the prayer is forgetful and then ends the prayers with salams, forgetting to perform the prostration of forgetfulness, then if a long time has passed, the prostration of forgetfulness is no longer called for. This is the most apparent position among Shafi`is, and the position of the Hanbali school, Ibn Baz, and Ibn `Uthaymin.
Secondly: Ruling of remembering the prostration of forgetfulness after the salams when a short time has passed
If a person offering the prayer is forgetful and then ends the prayers with salams, forgetting to perform the prostration of forgetfulness, then if a short time has elapsed, he performs the prostration. This is the position of the majority: the Malikis, [411] According to them, this ruling applies as long as he has not left the place of prayer. Shafi`is, [412] Shafi`is explicitly mention that he is free not to prostrate, and his prayer remains valid. and Hanbalis. [413] According to them, this ruling applies as long as he has not left the place of prayer.