This website is under review. Do not rely on it for final rulings.
Machine translation
Question
I gave charity to one of the worshippers by praying with him in congregation after he had come late to the congregation. I caught up with him while he was in the second rak'ah of the Dhuhr prayer, and some of the brothers were praying with him. When he gave the salam, I gave the salam with him, and I ended the prayer with 3 rak'ahs instead of 4 rak'ahs, since my intention was to pray with him until he finished the prayer, as the prayer counts for me as a voluntary prayer.... Then one of the brothers informed me that I should have stood up and completed 4 rak'ahs. So is what I did correct, or what the brother said? May Allah reward you with goodness.
Answer
All praise is due to Allah, and peace and blessings be upon the Messenger of Allah, and upon his family and companions. To proceed:
What you did is that you intended a voluntary prayer with an unspecified number of rak'ahs, because you did not know in which rak'ah your imam was, and you intended to give the salam with his salam. The Shafi'is permit this.
Al-Nawawi said in Rawdat al-Talibin: Voluntary prayers that are not tied to a cause or a time have no limit on their number, nor on the number of rak'ahs in each of them. So if one begins a voluntary prayer and does not intend a number, he may give the salam after one rak'ah, and he may give the salam after two rak'ahs or more. And if he prays a number he does not know and then gives the salam, it is valid; this is stated in al-Imla. And if he intends one rak'ah, or a small or large number, that is permitted for him. End of quote.
Therefore, we hope that you will be rewarded for that prayer of yours, and that there is no blame upon you for what you did, God willing.
And Allah knows best.
الحمد لله، والصلاة والسلام على رسول الله، وعلى آله وصحبه، أما بعد:
فالذي حصل منك هو أنك نويت التطوع بعدد غير معلوم من الركعات، لكونك لا تعلم في أي ركعة إمامك، ونويت أن تسلم بسلامه، وهذا يجوزه الشافعية.
قال النووي في روضة الطالبين: التطوعات التي لا تتعلق بسبب، ولا وقت، لا حصر لأعدادها، ولا الركعات الواحدة منها، فإذا شرع في تطوع، ولم ينو عددا، فله أن يسلم من ركعة، وله أن يسلم من ركعتين فصاعدا، ولو صلى عددا لا يعلمه، ثم سلم، صح، نص عليه في الإملاء، ولو نوى ركعة، أو عددا قليلا، أو كثيرا، فله ذلك. انتهى.
وعليه؛ فيرجى لك الأجر لصلاتك تلك، وأن لا يكون عليك حرج فيما فعلت -إن شاء الله.
والله أعلم.
More fatwas from our library on the same topic