Shobogenzo Zuimonki 3-10.
The full passage reads (I’m using the Okumura version):
“Now if you wish to practice the Way of the buddhas and patriarchs, you should practice the Way of the previous sages as well as the conduct of the patriarchs with no (expectation of) profit; expect nothing, seek nothing, gain nothing.
Although you should quit seeking and give up expectations of buddhahood, if you stop practicing and continue engaging in your former evil deeds, you will still be guilty of seeking and will fall back into the old nest.
Without having the slightest expectation, maintain the prescribed manner of conduct. Think of acting to save and benefit living beings, earnestly carry out all good deeds, and give up former evil ones, solely for the sake of becoming the foundation of happiness for human and heavenly beings. Without stagnating in good deeds of the present, continue practicing your whole lifetime. An ancient called this ‘breaking the bottom of the lacquer pail.’ The Way of the life of the buddhas and patriarchs is like this.”