Srimad Bhagavatam Canto 10, Chapter 50, Text 41

SB 10.50.41

evam saptadasa-krtvas
 tavaty aksauhini-balah
yuyudhe magadho raja
 yadubhih krsna-palitaih
 
Translation: 
 
Seventeen times the King of Magadha met defeat in this very way. And yet throughout these defeats he fought on with his aksauhini divisions against the forces of the Yadu dynasty who were protected by Sri Krsna.
Srimad Bhagavatam Canto 10, Chapter 50, Text 40
Srimad Bhagavatam Canto 10, Chapter 50, Text 32-33