It is narrated from Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Shall I not teach you the words that Musa (peace be upon him) spoke when he crossed the sea with the Children of Israel?" We said: "Certainly, O Messenger of Allah." He (peace and blessings be upon him) said: "Say: 'Allahumma lakal-hamd, wa ilaykal-mushtaka, wa antal-musta'an, wa la hawla wa la quwwata illa billahil-'azim' (O Allah, to You belongs all praise, to You is the complaint, You are the One whose help is sought, and there is no power to avoid sin and no strength to do good except through Allah, the Most Great)."
(Al-A'mash (may Allah have mercy on him) said:) "Since I heard these words from Shaqiq (may Allah have mercy on him), I have never left them." And Shaqiq (may Allah have mercy on him) said: "Since I heard these words from Sayyiduna Abdullah (may Allah be pleased with him), I have never abandoned them." And Sayyiduna Abdullah (may Allah be pleased with him) said: "Since I heard these words from the Messenger of Allah (peace and blessings be upon him), I have never abandoned them." Al-A'mash (may Allah have mercy on him) said: "Someone came to me in my dream and said: 'O Sulayman, add to these words: Wa nasta'inuka 'ala fasadin huwa fina, wa nas'aluka salaha amrina kullihi (and we seek Your help against the corruption that is within us, and we ask You for the soundness of all our affairs).'"
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from al-A'mash except Waki', and no one narrated it from Waki' except Zakariyya, and Ja'far is alone in narrating it, and this hadith is narrated from the Messenger of Allah (peace and blessings be upon him) only with this chain."
(It is like this in the Dar al-Haramayn printed edition, but the correct name is probably "Ja'far bin al-Nadr al-Wasiti", as in Majma' al-Bahrayn, and the editor has pointed this out.)
Hadith Referenceالمعجم الأوسط / باب الجيم / 3394
Hadith Gradingمحدثین:فيه من لم يعرفهم الهيثمي
Hadith Takhrij«قال الهيثمي: فيه من لم أعرفهم «مجمع الزوائد ومنبع الفوائد، ج 10، ص 183»» «أخرجه الطبراني فى «الصغير» برقم: 339»