10 The Lord was pleased that Solomon had asked for this. 11 So God said to him, “Since you have asked for this and not for long life or wealth for yourself, nor have asked for the death of your enemies but for discernment in administering justice, 12 I will do what you have asked. I will give you a wise and discerning heart, so that there will never have been anyone like you, nor will there ever be. 13 Moreover, I will give you what you have not asked for—both wealth and honor—so that in your lifetime you will have no equal among kings. 14 And if you walk in obedience to me and keep my decrees and commands as David your father did, I will give you a long life.”
The idea is to die young as late as possible.