What Are the Rulings of the Latecomer Recitation in Prayer?

If a person (latecomer) catches up with the second rak`ah behind the Imam, should he recite ...

Joining the Imam in the Last Rakah: What To Do?

What should I do if I join the imam in the fourth rakah of prayer?

...