I performed Takbir (saying: "Allahu Akbar [Allah is the Greatest]") behind an Imam for Salah (Prayer) and recited Du`a'-ul-istiftah (opening supplication when starting the Prayer), Surah Al-Fatihah, and another Surah, then the Imam began to recite out loud. I became distracted and began reciting Du`a'-ul-istiftah, Surah Al-Fatihah, and another Surah again.
Would you please tell me what the ruling is on this and may Allah reward you with the best!
Your Salah was valid and there is no harm done due to what you did by repeating the recitation of Du`a'-ul-Istiftah, Surah Al-Fatihah, and another Surah when you were distracted. You are also not required to offer Sujud-ul-Sahw (Prostration of Forgetfulness), because you were following an Imam. You should try to exert an effort to listen and pay attention to the Imam when he is reciting out loud. It suffices for you to just recite Surah Al-Fatihah if the Imam is reciting out loud. (Part No. 6; Page No. 415) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.