It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "I asked my Lord a question which I (later) wished I had not asked. I said: 'O my Lord! There were prophets before me; for some of them You subjugated the winds, and some of them used to bring the dead to life.' Allah Almighty said: 'Did I not find you an orphan and give you shelter? And find you unaware of the way and guide you? Did I not open your chest for you?' He (peace and blessings be upon him) said: I said: 'Yes indeed, O my Lord!'"
These are the words of al-Baghawi (may Allah have mercy on him).
In the narration of al-Tustari (may Allah have mercy on him) it reads: "Messengers passed before me; among them," and in his version (the words of Allah Almighty) are: "Did I not find you unaware of the way and guide you? Did I not find you in need and make you free of want? Did I not open your chest for you and remove your burden from you?" He (peace and blessings be upon him) said: "I said: 'Yes indeed, O my Lord!'"
Through the same chain, al-Tabarani (may Allah have mercy on him) narrated it from Ali bin Abd al-Aziz, from Arim Abu al-Nu'man, from Hammad bin Zayd, from Ata bin al-Sa'ib. Hammad bin Zayd (may Allah have mercy on him) said: "I think it is (from Ata), from Sa'id bin Jubayr, from Sayyiduna Ibn Abbas (may Allah be pleased with them both), that the Messenger of Allah (peace and blessings be upon him) said:" then he mentioned the whole hadith. This and the first narration are one and the same hadith, and he said: "The wording of both is the same."