To perform the eclipse prayer (*Salat al-Kusuf*), Muslims should:
1. **Make the Intention**: Intend to perform the eclipse prayer for the sake of Allah.
2. **Pray in Congregation**: It is recommended to pray *Salat al-Kusuf* in congregation, though it can be prayed individually.
3. **Two Rakat with Extra Ruku**: Perform two rakats, with each rakat containing two recitations of *Surah Al-Fatihah* and another Surah, followed by two bowings (*ruku*), making it a total of four *ruku* in the prayer.
4. **Longer Recitations**: Lengthen the recitations, bowings, and prostrations if possible.
5. **Conclude with Dua**: After the prayer, make dua for forgiveness and seek Allah’s mercy.
The prayer is performed during a solar or lunar eclipse and serves as a reminder of Allah’s power.