Ali bin Abu Talib reported,

I remember the night of Badr. Every one of us was asleep except the Messenger of Allah ﷺ, who stood praying beneath a tree and supplicating until morning. On the day of Badr, none of us had a horse except Miqdad bin Aswad.

Azami 2525

Sahih

عن علي بن أبي طالب قال

لقد رأيتنا ليلة بدر، وما منا إنسان إلا نائم إلا رسول ﷺ، فإنه كان يصلي إلى شجرة، ويدعو حتى أصبح، وما كان منا فارس يوم بدر غير المقداد بن الأسود.

الأعظمي 2525صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
Sutrah
Section
Seeking to pray toward a sutrah such as a pillar and the like
Numbering
Jami al-Kamil 2525 (2nd edition)
Azami 2525