This is a commonly heard quote and it's very misleading. I think it's more biblical to say God helps those who are helpless.
Another I heard often is "a family that prays together stays together." A good-natured elderly brother insisted that he saw this in the Bible.
Even thought I walk through the valley of the shadow of death, I shall fear no evil for you are with me. Your rod and your staff, they comfort me.
Ps 23:4