the spirit is willing

the spirit is willing (but the flesh is weak)

someone has good intentions (but yields to temptation and fails to live up to them).
This expression quotes Jesus's words in Matthew 26:41, on finding his disciples asleep in the Garden of Gethsemane despite his instructions that they should stay awake.
See also: spirit, willing