It is narrated from Sayyiduna Abu Sa'id (may Allah be pleased with him) (the narrator said: I asked Fudayl: Did he narrate it as marfu' (from the Prophet)? He said: I think he narrated it as marfu', up to the Messenger of Allah (peace and blessings be upon him)) that he (peace and blessings be upon him) said: "Whoever says, when he goes out for the prayer: 'Allahumma inni as'aluka bi-haqqi al-sa'ilina alayka, wa bi-haqqi mamshaya hadha, inni lam akhruj ashiran wa la bataran wa la riya'an wa la sum'atan, kharajtu ittiqa'a sakhatika wabtigha'a mardatika, as'aluka an tu'idhani min al-nar, wa an taghfira li, innahu la yaghfiru al-dhunuba illa ant' (O Allah, I ask You by the right of those who ask of You, and by the right of this walk of mine (to the mosque); I have not gone out in insolence, arrogance, showing off or seeking fame, but I have gone out to avoid Your displeasure and seeking Your pleasure; I ask You to protect me from the Fire and to forgive my sins, for none forgives sins except You), Allah Almighty appoints seventy thousand angels for him who seek forgiveness for him, and Allah Almighty keeps His attention turned towards him until he finishes his prayer."
This chain is da'if (weak) because of the weakness of Atiyyah al-Awfi and the narrator who narrates from him.
Imam Ibn Majah (may Allah have mercy on him) recorded it in his Sunan through Fudayl, and mentioned it without the words "until he finishes his prayer", and it also does not contain the words "Allah appoints for him". However, Imam Ibn Khuzaymah (may Allah have mercy on him) recorded it in his Sahih through Fudayl bin Marzuq, so it is sahih (authentic) in his view.
Imam al-Tabarani (may Allah have mercy on him) recorded it in Kitab al-Du'a through Fudayl bin Marzuq, and he said that Abdullah bin Salih al-Ijli narrated this hadith from Fudayl bin Marzuq as marfu', while Abu Nu'aym narrated it as mawquf.
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب المساجد / 979
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«هذا إسناد ضعيف؛ لضعف عطية والراوي عنه» «أخرجه سنن ابن ماجه برقم: 778، وأخرجه مسند أحمد برقم: 10772، وأخرجه الأوسط في السنن والإجماع والاختلاف برقم: 1781»