Khabab bin Arat reported,

The Messenger of Allah ﷺ once prayed a prayer and prolonged it. The companions said, "Messenger of Allah, you prayed a prayer unlike any you have prayed before."He replied, "Yes, it was a prayer of hope and fear. In it I asked Allah for three things. He granted me two and withheld one. I asked Him not to destroy my Ummah by famine, and He granted me that. I asked Him not to give power over them to an enemy from outside themselves, and He granted me that. And I asked Him not to let them taste the violence of one another, but He withheld that from me."

Azami 2766

Sahih

عن خباب بن الأرت قال

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

الأعظمي 2766صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Minor actions do not invalidate the prayer
Section
Reviving most of the night or all of it occasionally
Numbering
Jami al-Kamil 2766 (2nd edition)
Azami 2766