Confucius said this quote

It is when those who are not strong enough have made some moderate amount of progress that they fail and give up...