Came across this passage in the Dhammapada (10:16). It may or may not be the exact phrase that Torei Enji took for the title of his essay “The Whip for a Good Horse”, as I’m sure it appears in a number of places, but I love it!
Here’s the full text of Torei’s “The Whip”: https://ironcityrinzai.org/…/uploads/2022/10/The-Whip.pdf