Ecclesiastes 9:11; Ecclesiastes 10:12

11 I have seen something else under the sun: The race is not to the swift or the battle to the strong, nor does food come to the wise or wealth to the brilliant or favor to the learned; but time and chance happen to them all.
12 Words from the mouth of the wise are gracious, but fools are consumed by their own lips.