Amir bin Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ came one day from the high ground of Madinah, and as he passed by the mosque of Banu Muawiya, he entered it, prayed two units of prayer, and we prayed along with him. He then supplicated to his Lord at length before turning to us and saying ﷺ, "I asked my Lord for three things, and He granted me two and withheld one. I asked my Lord not to destroy my nation by famine, and He granted me that. I asked Him not to destroy my nation by drowning, and He granted me that. And I asked Him not to let them fight one another, but He withheld that from me."

Muslim 7260

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن نمير ح و حدثنا ابن نمير واللفظ له حدثنا أبي حدثنا عثمان بن حكيم

أخبرني عامر بن سعد عن أبيه

أن رسول الله ﷺ أقبل ذات يوم من العالية حتى إذا مر بمسجد بني معاوية دخل فركع فيه ركعتين وصلينا معه ودعا ربه طويلا ثم انصرف إلينا فقال ﷺ سألت ربي ثلاثا فأعطاني ثنتين ومنعني واحدة سألت ربي أن لا يهلك أمتي بالسنة فأعطانيها وسألته أن لا يهلك أمتي بالغرق فأعطانيها وسألته أن لا يجعل بأسهم بينهم فمنعنيها

مسلم 7260صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tribulations and signs of the Hour
Chapter
Destruction of this ummah by one another
Numbering
Darussalam 7260
Muslim 7260