Does voluntary weeping, moaning, or groaning that is not due to the fear of Allah invalidate prayer?

Chapter on the Two Prostrations of Forgetfulness

Al-Mughni

Book of Prayer

Book 3 · Issue 2 · Bab 7

Open in Qurani

Primary text

If weeping, moaning, or groaning is done voluntarily and is not motivated by the fear of Allah, it invalidates the prayer.