Looks like the quote was from Will Durant, based on an Aristotle saying.
>"Virtues are formed in man by his doing the actions," Aristotle said. The writer Will Durant interpreted it thusly: "We are what we repeatedly do… therefore excellence is not an act, but a habit." https://dailystoic.com/we-are-what-we-repeatedly-do/