1
אם באת מצוה לידך שלא בכוונה תשמח ותתן שבח והודיה להקב"ה שאינה אותה לידך לעשותה: If unintentionally a meritorious deed came to your hand, rejoice and give praise and thanks to the Holy One, blessed be He, that He caused it to come to your hand for you to perform it.1Toseftah, Peah, Chapter III.