Each soul is potentially divine
The goal is to manifest this divinity within by controlling nature: external and internal.
Do this either by work, or worship, or psychic control, or philosophy -- by one, or more, or all these -- and be free.
This is the whole of religion. Doctrines, or dogmas, or rituals, or books, or temples, or forms, are but secondary details.