What is the legal status of reciting 'Rabbana wa lakal hamd' and 'Sami'a Allahu liman hamidah'?

Chapter on what invalidates the prayer if omitted intentionally or forgetfully

Al-Mughni

Book of Prayer

Book 3 · Issue 4 · Bab 6

Open in Qurani

Primary text

The utterance 'Rabbana wa lakal hamd' is exclusively obligatory for the follower (Ma'mum) and for one praying alone, although there is another narration stating it is not obligatory for one praying alone. The utterance 'Sami'a Allahu liman hamidah' is exclusively required for the Imam and one praying alone.