بسم الله الرحمن الرحيم
Sa’d ibn Abi Waqqas رضي الله عنه narrates that a man came to the Salah while the Messenger ﷺ was performing the Salah with us and he said when he reached the saff (row),
اَللّٰهُمَّ آتِنِيْ أَفْضَلَ مَا تُؤْتِيْ عِبَادَكَ الصَّالِحِيْنَ
Allahumma aatini af-dhala maa tu-ti ebaadakas-saliheen
(O Allah, grant me the best of that which you give your righteous servants.)
When the Prophet ﷺ completed the Salah, he asked, “Who was the speaker just now?” The man said, “I, O Messenger of Allah.” The Prophet ﷺ said, “Then your horse will be crippled and you will be martyred in the path of Allah.”
The following muhaddithun placed this hadith under the title,
[باب القول عند الانتهاء الى الصف [قبل تكبيرة الافتتاح
“What to say when one reaches the saff (rows) [before the tabir to commence salah]”
- Ibn Sunni,
- Ibn Khuzaimah,
- Tabarani in ‘Dua’,
- Nawawi in ‘Azkaar’,
- Ibn Hajr in ‘Nataaijul Afkaar’,
- and Ibn A’llan in ‘Futoohaat Rabbaniyah’
Points derived from this Hadith:
It is masnoon and desirable to recite this dua (supplication) when one reaches the saff (row) of the congregational salah before he says the takbir tahrimah (the takbir to commence the salah) as the Messenger of Allah ﷺ did not simply approve of it but also indicated to the acceptance of his supplication.
Another point noteworthy is that one of the best gifts a Muslim may be granted is martyrdom in the path of Allah.
Grade of the Hadith:
Imam Hakim has classified it authentic on the condition of ‘Sahih Muslim’ and Hafidh Zahabi agreed with him. However, Hafidh Haithami and Hafidh Ibn Hajr pointed out that one of its narrators, Muhammad ibn Muslim ibn ‘Aa-idh is not a narrator of ‘Sahih Muslim’. The scholars then disagree on the status of this narrator. Some have graded him unknown, but this is incorrect, as Hafidh Ibn Hibban, Hafidh E’jli and Hafidh Haithami all graded him as reliable. Therefore, some conclude that this narration is authentic صحيح (including Imam Ibn Khuzaimah, Imam Ibn Hibban, and Shaikh Daaraani) while, others say it is sound حسن (including Hafidh Ibn Hajr, Dr. Muhammad Saeed and Dr. Farooq Hammadah).
And Allah Ta’ala knows best.
 (Vol.1 Pg.207)
 (Vol.2 Pg.143)
 Nataijul Afkaar Vol.1 Pg.397
 Thiqaat Vol.7 Pg.388
 Ma’rifah Thiqaat Vol.2 Pg.252 #1644
 Majmauz Zawaid Vol.5 Pg.295
 See his ta’leeq on ‘Majmauz Zawaid’ Vol.12 Pg.407
 See his ta’leeq of ‘Dua of Tabarani’ #492
 See his ta’leeq on ‘Amalul Yawm’ of Nasai #93