A meta analysis of 83 studies also shows an extremely significant inverse correlation between intelligence and religiosity by the way even when controlling for a myriad of socioeconomic factors:
https://journals.sagepub.com/doi/10.1177/0146167219879122