It was narrated that ‘Ali (رضي الله عنه) said:
I remember us on the night of Badr, there was no one among us who was not sleeping, except the Messenger of Allah (ﷺ) who prayed facing a tree and offered supplication until morning came, and there was no horseman among us on the day of Badr except Al-Miqdad bin Al-Aswad.