If a person knows that he slept voluntarily but doubts whether he slept after prayers or he slept during prayers having forgotten that he was performing prayers, his prayer is valid subject to the same condition that was mentioned in the previous ruling.