Sun Tzu said this quote

Water shapes its course according to the nature of the ground over which it flows, the soldier works out his victory in relation to the foe whom he is facing.