Is it valid to pray a prayer with different prescribed actions behind one performing a differing ritual prayer, such as eclipse prayer or Friday prayer?

Chapter on Imamate and Congregational Prayer

Al-Mughni

Book of Prayer

Book 3 · Issue 4 · Bab 10

Open in Qurani

Primary text

If one of the two prayers differs from the other in its actions, such as the eclipse prayer behind one performing a different prayer, or any other prayer behind one performing the Friday prayer or the eclipse prayer, the prayer is invalid based on a single narration. This is because it leads to a forbidden divergence in actions from the Imam.