Fifth: at any stage of the prayer, one doubts whether he has...
Fifth: at any stage of the prayer, one doubts whether he has performed three or four rakʿahs. In this situation, he must assume he has performed four rakʿahs and complete the prayer; after the prayer, he must perform one rakʿah of ṣalāt al‑iḥtiyāṭ in a standing position or two rakʿahs in a sitting position. Sixth: while standing, one doubts whether he has performed four or five rakʿahs.
In this situation, he must sit down, say tashahhud and the salām of the prayer, and perform one rakʿah of ṣalāt al‑iḥtiyāṭ in a standing position or two rakʿahs in a sitting position. Seventh: while standing, one doubts whether he has performed three or five rakʿahs. In this situation, he must sit down, say tashahhud and the salām of the prayer, and perform two rakʿahs of ṣalāt al‑iḥtiyāṭ in a standing position.
Eighth: while standing, one doubts whether he has performed three, four, or five rakʿahs. In this situation, he must sit down, say tashahhud and the salām of the prayer, perform two rakʿahs of ṣalāt al‑iḥtiyāṭ in a standing position, and then perform two rakʿahs in a sitting position. Ninth: while standing, one doubts whether he has performed five or six rakʿahs. In this situation, he must sit down, say tashahhud and the salām of the prayer, and then perform sajdatā al‑sahw.