Deuteronomy 20:20 NIV

20 However, you may cut down trees that you know are not fruit trees1 and use them to build siege works until the city at war with you falls.

References for Deuteronomy 20:20