Congregational Prayer and Its Virtue
Man Lā Yaḥḍuruh al-Faqīh|Volume 1|Book 1|Chapter 57
وَقَالَ أَمِيرُ اَلْمُؤْمِنِينَ عَلَيْهِ اَلسَّلاَمُ: «لاَ يُصَلِّيَنَّ أَحَدُكُمْ خَلْفَ اَلْأَجْذَمِ وَ اَلْأَبْرَصِ وَ اَلْمَجْنُونِ وَ اَلْمَحْدُودِ وَ وَلَدِ اَلزِّنَا وَ اَلْأَعْرَابِيُّ لاَ يَؤُمُّ اَلْمُهَاجِرَ.
The Commander of the Faithful Imam Ali ibn Abi Talib عليه السلام said: "None of you should pray behind a person with a mutilated limb (al-ajdham), a person with leprosy (al-abrāṣ), a person with a mental disorder (al-majnūn), a person who has been subjected to a legal punishment (al-maḥdūd), the child of adultery (walad al-zina), or a Bedouin (al-a‘rābī) leading a migrant (al-muhājir)."
- Ṣaḥīḥ al-Faqīh, p. 52