I asked Ibn `Abbas regarding Surat-al-Anfal. He said, "It was revealed in connection with the Battle of Badr."
Sahih al-Bukhari Book 65, Hadith 167