Behind whom may one pray? — The conditions of the imam of congregation
A congregational prayer is prayed behind someone who is adult, sane, a Twelver Shia, just (‘adil) and of legitimate birth, and who performs the prayer correctly; if the followers are men, the imam must also be a man. According to the ruling of Grand Ayatullah Sayyid ‘Ali al-Sistani, to recognise justice it is enough that the imam outwardly appears to be a good, practising person, unless something to the contrary is known (Ayatullah Sistani, Islamic Laws, ruling 1433). Check your own marja‘’s ruling as well.
The guidance of the Ahl al-Bayt (a)
The narrations of the Imams (a) insist that one should follow only a person who holds the wilayah and whose religion and trustworthiness one can rely on. The imam carries the prayer of the whole congregation — his recitation stands for that of the followers — which is why such weight is placed on his conditions.
The conditions of the imam
Adult. According to Ayatullah Sistani, following a ten-year-old child has some basis but is problematic, so the obligatory precaution is not to follow a child (Ayatullah Sistani, Islamic Laws, ruling 1433).
Sane.
A Twelver Shia.
Just — that is, he fulfils the obligations and avoids what is forbidden. Its sign is that he outwardly appears to be a good person.
Of legitimate birth.
Performs the prayer correctly — in particular, his recitation of al-Hamd and the surah is correct.
A man, if the followers are men. A woman may lead other women.
Practical questions
If someone was regarded as just and you now doubt whether he still is, you may follow him (Ayatullah Sistani, Islamic Laws, ruling 1434).
A person praying standing may not follow an imam who prays sitting or lying down; a person praying sitting may follow an imam who prays sitting (Ayatullah Sistani, Islamic Laws, rulings 1435 and 1436).
If the imam leads the prayer with tayammum, with jabirah wudu or in najis clothing because of a valid excuse, following him is permitted (Ayatullah Sistani, Islamic Laws, ruling 1437).
A person who has received a legal (hadd) punishment must not be followed, as an obligatory precaution, even if he has repented (Ayatullah Sistani, Islamic Laws, ruling 1439).
You need not know the imam’s name, but your intention must be for a specific imam — the intention and the other rulings of the congregation are on the page named below.
Joining the congregation of other Muslims — for example for the sake of unity and good relations — has separate rulings that the maraji‘ have explained; check your own marja‘’s ruling on it.
The intention in congregation, what the follower recites, joining late: Salah › How to Perform Salat › “Important Rulings of Salat — Questions and Answers”
Sources: Wasa’il al-Shi‘a, chapters on the congregational prayer; Man La Yahduruhu al-Faqih, vol. 1; Ayatullah Sistani, Islamic Laws (Tawdih al-Masa’il), rulings 1433–1439. Check your own marja‘’s ruling.
اَللّٰهُمَّ صَلِّ عَلٰى مُحَمَّدٍ وَّاٰلِ مُحَمَّدٍ