Does Elohim help those who help themselves?

2 Samuel 7:9, I have …cut off all your enemies. YHVH informed David through Nathan the prophet that he had cut off all David’s enemies. However, this didn’t occur by David sitting on this thumbs and doing nothing while expecting YHVH to defeat his enemies. David had to actively and aggressively literally fight against his enemies. Only then did YHVH help David to defeat them.

There is a lesson here for us. If we need deliverance from our enemies (e.g., sin, addictions, sickness, poverty, demons, persecution, evil people or whatever), we have to do our part. Sometimes, YHVH will give us novel and unconventional ways to defeat our enemies as he did on many occasions with David and the Israelites. Nevertheless, for YHVH to intervene miraculously on behalf of his saints, they still needed to be doing their part: seeking him and trusting in and obeying him.

Although it appears nowhere in the Scriptures, it would seem that the old adage that Elohim helps those who help themselves has some merit.