That's a nice riff on the original:
"Again I saw that under the sun the race is not to the swift, nor the battle to the strong, nor bread to the wise, nor riches to the intelligent, nor favor to those with knowledge, but time and chance happen to them all." —Ecclesiastes 9:11
To understand where Ecclesiastes is coming from:
In the wisdom literature, books like Proverbs will typically state the common case and it's Ecclesiastes that will state the exception. This keeps the wisdom literature balanced as a set of principles, not rules.
The Hugh Keough quote is a great summary then of the main point, which I won't restate.