Attack where you are strong and the enemy is weak; do not attack where the enemy is strong and you are weak.
Attribution checked
Quothly found supporting evidence for this attribution.
Chapter 6 of Sun Tzu's The Art of War (in standard English translations) contains the same instructions to avoid the enemy's strengths and strike where he is weak, matching the quoted wording as a modern paraphrase.
The Art of War — Chapter 6: Weak Points and Strong (suntzu-artofwar.org)