The Messenger of Allah ﷺ said to me, "Ask of me, and I will grant you."I said, "Messenger of Allah, give me time to consider my request."He said, "Take time to consider your request."So I reflected and said to myself, "The matters of this world come to an end, so I see nothing better than to take for myself something that will benefit me in the hereafter."I then went in to the Prophet ﷺ and he asked, "What is your need?"I said, "Messenger of Allah, intercede for me with your Lord that He may free me from the Fire."He asked, "Who instructed you to ask this?"I said, "No, by Allah, Messenger of Allah, no one instructed me. But I reflected on my situation and realized that this world will pass away from its people, so I wished to secure something for my hereafter."He said, "Then help me to help you by making frequent prostration."
قال حدثنا أبو اليمان قال حدثنا إسماعيل بن عياش عن محمد بن إسحاق عن محمد بن عمرو بن عطاء عن نعيم المجمر
قال لي رسول الله ﷺ سلني أعطك قلت يا رسول الله أنظرني أنظر في أمري قال فانظر في أمرك قال فنظرت فقلت إن أمر الدنيا ينقطع فلا أرى شيئا خيرا من شيء آخذه لنفسي لآخرتي فدخلت على النبي ﷺ فقال ما حاجتك فقلت يا رسول الله اشفع لي إلى ربك عز وجل فليعتقني من النار فقال من أمرك بهذا فقلت لا والله يا رسول الله ما أمرني به أحد ولكني نظرت في أمري فرأيت أن الدنيا زائلة من أهلها فأحببت أن آخذ لآخرتي قال فأعني على نفسك بكثرة السجود
Its isnad is hasan, because of Ismail bin Ayyash, since here he is narrating from someone outside his own region, and Muhammad bin Ishaq here did not explicitly state that he heard it directly, though he will state it explicitly in the following isnad. As for Muhammad bin Amr bin Ata Qurashi Amiri, he is a well known trustworthy narrator whose hadith is accepted by the group of major compilers. The same applies to Naeem bin Abdullah Mujmir.The hadith was narrated with similar wording by Muslim, 1/353, no. 489, in the Book of Prayer, chapter on the merit of sujud and encouragement to perform it, by Abu Dawud, 2/35, no. 1320, in the Book of Prayer, chapter on the time for the night prayer, and by Nasai, 2/227, no. 1138, in the chapter on tatbiq, on the merit of sujud.