That seems to ring a bell.

Aide toi et le ciel taidera (Aid thyself and heaven will aid thee)