This question is based on a misunderstanding. Prince, the renowned musician, did not have surgery because of his religion. Religion does not determine medical needs or procedures.
It is important to separate personal beliefs from medical decisions. While Prince was known to be a Jehovah's Witness, this faith generally prohibits blood transfusions. However, this does not mean that they avoid all medical procedures.
Prince's death was attributed to an accidental overdose of fentanyl.