Related for Berakhot 45:6
ואמר רבי שמואל בר נחמני אמר רבי יונתן מ"ד (קהלת ד, יז) שמור רגלך כאשר תלך אל בית האלהים שמור עצמך שלא תחטא ואם תחטא הבא קרבן לפני וקרוב לשמוע (דברי חכמים) אמר רבא הוי קרוב לשמוע דברי חכמים שאם חוטאים מביאים קרבן ועושים תשובה מתת הכסילים [זבח] אל תהי ככסילים שחוטאים ומביאים קרבן ואין עושים תשובה
R. Samuel b. Nahmani also said in the name of R. Jonathan : What means that which is written, "Guard thy foot when thou goest to the house of God" (Eccles. iv. 17)? Guard thyself so that thou sinnest not; but if thou sinnest, bring an offering into My presence. "And be ready to hearken " (Eccles. iv. 1 7) — Raba said : Be ready to hearken to the words of the Sages ; for if they sin, they bring an offering and repent. "It is better than when fools give sacrifices" (ibid.) — be not like the fools who sin and bring an offering without repenting.