Kesuvos 50-1: Chomesh

The reason one should not spend more than a fifth of his money for doing a Mitzvas Aseh, but should spend all his money to prevent a transgression of a Lo Sa'aseh.