What is the ruling on intending a prayer when one has multiple unspecified missed prayers?

Chapter on the Description of Prayer

Al-Mughni

Book of Prayer

Book 3 · Issue 6 · Bab 5

Open in Qurani

Primary text

If a person has multiple missed prayers but intends a non-specified prayer, it does not count for any of them due to the lack of specification. If someone forgets a prayer from a day but does not know which one it was, they must pray five prayers to ensure the missed prayer is fulfilled. If a person forgets a prayer and does not know if it was Dhuhr or Asr, they must pray two prayers. If they pray one intending it as the forgotten one, it is insufficient due to the lack of specification.