ENOfficial
It was narrated that ‘Ali (رضي الله عنه) said: There were no horsemen among us on the day of Badr apart from al-Miqdad. I could not see any of us who was not asleep, apart from the Messenger of Allah (ﷺ) who remained praying beneath a tree and weeping until morning.
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ، عَنْ شُعْبَةَ، عَنْ أَبِي إِسْحَاقَ، عَنْ حَارِثَةَ بْنِ مُضَرِّبٍ، عَنْ عَلِيٍّ، رَضِيَ اللَّهُ عَنْهُ قَالَ مَا كَانَ فِينَا فَارِسٌ يَوْمَ بَدْرٍ غَيْرُ الْمِقْدَادِ وَلَقَدْ رَأَيْتُنَا وَمَا فِينَا إِلَّا نَائِمٌ إِلَّا رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ تَحْتَ شَجَرَةٍ يُصَلِّي وَيَبْكِي حَتَّى أَصْبَحَ.
sunnah.com