St Paul, writing roughly eighteen centuries before Schopenhauer, at Romans 7:15:

For what I would, that do I not; but what I hate, that do I.