Believe it or not, you can change critical structures in your brain by adopting a regimen of meditation. 8 weeks is enough to make some changes. These structures are associated with empathy, stress, and attention.
While the article doesn’t say it, it is possible that the act of prayer (if not the prayer itself!) could also have the same changes occur.
For more info, look at this NYT article: