Abu Sa’id said “The verse “If any do turn his back to them on such a day” was revealed on the day of the Battle of Badr.”
Sunan Abi Dawud Book 15, Hadith 172