It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he said: "I saw the Messenger of Allah (peace and blessings be upon him) during a journey pray eight rak'ahs of the forenoon (Duha) prayer. When he (peace and blessings be upon him) finished (the prayer), he said: 'Indeed, I have prayed a prayer of longing and hope. I asked my Lord, the Mighty and Majestic, for three things; He granted me two and withheld one. I asked my Lord not to destroy my Ummah through years of famine, and He accepted this supplication; I asked Him not to let an enemy (from outside them) overpower them, and He accepted this too; and I asked Him not to split them into different factions and embroil them with one another, and Allah Almighty did not accept this supplication.'"
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he said: "I saw the Prophet (peace and blessings be upon him) during a journey praying eight rak'ahs of the forenoon (Duha) prayer. When he (peace and blessings be upon him) finished the prayer, he said: 'Indeed, I have prayed a prayer in which there was longing and fear. I asked (my Lord) for three things; He granted me two and withheld one: I asked Allah Almighty not to afflict my Ummah with years of famine, and He granted it; I asked Him not to let their enemy overpower them, and He granted that too; and I asked Him not to split them into different factions and embroil them with one another, and He refused to grant me this request.'"
Imam Ahmad (may Allah have mercy on him) narrated it in his Musnad through Harun bin Ma'ruf (may Allah have mercy on him), from Ibn Wahb (may Allah have mercy on him), Amr bin al-Harith (may Allah have mercy on him), Bukayr bin al-Ashajj (may Allah have mercy on him) and al-Dahhak (may Allah have mercy on him), from Sayyiduna Anas bin Malik (may Allah be pleased with him), in a similar way, and in it are the words: "And I asked my Lord for three things."
Imam Abu Bakr bin Khuzaymah (may Allah have mercy on him) also narrated it in his Sahih through Ahmad bin Abdul Rahman bin Wahb (may Allah have mercy on him) from his paternal uncle Abdullah (may Allah have mercy on him); and through Ahmad bin Abdullah bin Abdul Rahim al-Barqi (may Allah have mercy on him) from Ibn Abi Maryam (may Allah have mercy on him), from Bakr bin Mudar (may Allah have mercy on him); and both of them (Abdullah and Bakr) narrated it from Amr bin al-Harith (may Allah have mercy on him) with the like of it.