Question
The imam of the mosque led us in a congregation, so how should the intention be?
Answer
I say, and with God's success: If the conditions for combining are not met, it is not valid. As for the intention, it is to intend to pray in combination, and God knows best.