Validity of aligning in prayer with an infidel or one whose prayer is invalid.
Chapter on Imamate and Congregational Prayer
Al-Mughni
Book of Prayer
Primary text
Alignment (Musaffah) with an infidel (kafir) or one whose prayer is invalid, other than those exempted, is not valid because their presence is equivalent to their absence.