It is my prayer that I will glorify God in my death just as I have tried to glorify God in my life. The most likely thing for all of us is that we will die in the same way in which we have lived.
The Death of Jonathan and Saul from 1 Samuel 31:2-4:
The Philistines overtook Saul and his sons; and the Philistines killed Jonathan and Abinadab and Malchi-shua the sons of Saul. The battle went heavily against Saul, and the archers hit him; and he was badly wounded by the archers. Then Saul said to his armor bearer, "Draw your sword and pierce me through with it, otherwise these uncircumcised will come and pierce me through and make sport of me." But his armor bearer would not, for he was greatly afraid. So Saul took his sword and fell on it.
Saul lived a fearful self-centered life, so he died a fearful and self-centered death. His godly son Jonathan bravely accepted death at the hand of the Philistines on the battle field, but Saul chose death by suicide because he feared the Philistines. He even tried to solicit someone else to do his own evil deed.
If you want to die in glory, live your life for glory.
If you want to die in shame, live your life in shame.
As you live, so you will die.
For me to live is Christ.