We do not independently create our actions, even though we intend to act or refrain.
Allah creates the deeds, and the servant acquires them. Intending a good action is a real act of choice, but the deed's occurrence depends on the power and tawfīq granted by Allah.
One should therefore neither boast as if one's own power were self-sufficient nor abandon effort and available means. The servant must act and seek Allah's enabling.