My Grandma used to say, "God helps those who help themselves".
She needed to read the Holy Scripture because that statement contrasts enormously with what is required there.
When David helped himself by numbering the people Israel lost an enormous number of those people and David (beloved of God) had to repent to stop the carnage that GOD wrought upon his people.