Deuteronomy 32:29-31

29 Oh, that they were wise, [that] they understood this, [That] they would consider their latter end!

30 How could one chase a thousand, And two put ten thousand to flight, Unless their Rock had sold them, And the LORD had surrendered them?

31 For their rock [is] not like our Rock, Even our enemies themselves [being] judges.