means that
each person must look after their own affairs while trusting in divine providence for the outcome.
The saying “Every man for himself and God for us all” can be used when every one is doing one's best, in a difficutl situation, and God (or luck or destiny) decides the outcome.