Sayyiduna Mu'adh bin Jabal (may Allah be pleased with him) narrates: I came to the Prophet (peace and blessings be upon him), and at that time the Prophet (peace and blessings be upon him) was standing, offering prayer. He remained continuously standing until morning came, then he went into prostration, and I thought that perhaps his soul had been taken during the prostration. The Prophet (peace and blessings be upon him) said: "Do you know what the reason for this (that is, for prolonging the prostration) is?" I said: "Allah and His Messenger know best." He repeated it to me three or four times. Then the Prophet (peace and blessings be upon him) said: "I offered the prayer that Allah Almighty had written for me. Then my Lord came to me and at the end of it said to me: 'What shall I do with your Ummah?' I said: 'O my Lord, You know best.' The Lord repeated this to me three or four times, and at the very last He said to me: 'What shall I do with your Ummah?' I said: 'O Lord, You know best.' Then the Lord said: 'I will not grieve you concerning your Ummah.' So I went into prostration before my Lord. My Lord appreciates gratitude and loves those who are grateful."
Al-Tabarani recorded it in al-Mu'jam al-Kabir via Hajjaj bin Uthman al-Saksaki from Sayyiduna Mu'adh (may Allah be pleased with him), but he did not meet Sayyiduna Mu'adh (may Allah be pleased with him); Ibn Hibban mentioned him among the atba' al-tabi'in (followers of the Successors).
This report comes via Baqiyyah, and he narrates it with 'an'anah (using "from").