"Every man for himself and the devil take the hindmost"
Each person must work independently toward their own success, as in competitive situations. The phrase is not only used to apply to men.
Once we realized that there was only one scoop of ice cream left, It was every man for himself and the devil take the hindmost.