Religiosity and spirituality have previously been found to have significant effects on mental and physical health. This study aimed to compare elderly people utilizing different types of religious activities in their daily routine and the effects upon their quality of life and cognitive function. A cross-sectional study was conducted among elderly people dwelling in suburban areas of Malaysia. The Malay version of Short Form (36) Health Survey (SF-36), Geriatric Depression Scale (GDS-15), Older Americans Resources and Services's Instrumental Activities of Daily Living (OARS's IADL), and the Montreal Cognitive Assessment (MoCA) questionnaires were used in this study. Independent t test was utilized to determine the difference in the quality of life and the cognitive function between groups of elderly people that were categorized based on their level of participation in different religious activities. The study involved 432 participants. The mean score for all domain of SF-36 was significantly higher among those who engaged in the religious activities as compared to those elderly who were either less engaged or did not practice religious activities. The mean score of GDS-15, OARS's IADL, and MoCA was also significantly higher among those who participated in religious activities. There was a significant impact on the quality of life and cognitive function among elderly people practicing religious activities. This study proved the importance of practicing religious activities among the elderly in achieving healthy aging. © 2021. The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature.