Here's some research: https://www.ncbi.nlm.nih.gov/pubmed/18555116
In short, only a few religions have anything to say against being a donor at death, and a few have something against being a recipient from a dead person.
If you think your religion might affect your decision to be a donor, check with a trusted authority figure and make sure.