expression
take it as a lesson learned; learn from this mistake
A set phrase used to admonish someone (or oneself) to learn from a failure or mistake. The kanji 道才坊/道斎坊 are ateji and the phrase has a somewhat old-fashioned, proverbial feel.
失敗したら、「これに懲りよ道才坊」と思って次に生かそう。
When you fail, think 'take it as a lesson learned' and make use of it next time.
彼は大損をして、これに懲りよ道才坊とつぶやいた。
He suffered a big loss and muttered, 'learn from this mistake.'
A set phrase combining これに懲りよ (imperative of 懲りる, 'learn from this') and the ateji name 道才坊/道斎坊, which may be a playful or fictional personal name. The exact origin is uncertain.