Sun Tzu said this quote

A clever general, therefore, avoids an army when its spirit is keen, but attacks it when it is sluggish and inclined to return.