You wanted to know about being saved at the eleventh hour or on a deathbed. Read the parable of the workers in the vineyard in Matthew 20. The owner of the vineyard goes out to get workers at all times of the day from early morning to later in the afternoon. When it comes time to being paid, the workers who were hired for one hour received the same wage as the workers who had worked all day. When the workers who had worked all day complained, the owner of the vineyard (The Lord) said vs 14: Take your pay and go. I want to give the man who was hired last the same as I gave you. Don't I have the right to do what I want with my own money? Or are you envious because I am generous?
The Lord can offer grace and salvation to anyone at any time, if they come to believe. Even on their death bed.