I recall some praying for God to forgive those killing them & praying to be able to endure whatever type of persecution.
I don't recall anyone in the Bible praying for anyone else about to die. I think that may be a spin off of the ancient Egyptians & Greeks.