Answer
Wa `alaykum As-Salamu wa Rahmatullahi wa Barakatuh.
In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
1- No one should wish death for any affliction`that has befallen him.
2- There is nothing wrong— and, nay, it is indeed most meritorious —for a believer to pray to Allah to make death visit when he is in the best act or deed of his life.
Focusing more on your question, Sheikh Ahmad Kutty, a senior lecturer and Islamic scholar at the Islamic Institute of Toronto, Ontario, Canada, states:
Although we believe that a virtuous Hajj makes a person washed clean of his sins, and we certainly hope and pray that we are included in this category, it is still too presumptuous on our part to think that we definitely fall in this category; after all, who can say for certain whether our Hajj was so virtuous as to make us worthy of this honor?
Then again, how can we be so sure in our heart that it is good for us to die then and there, and not some other time? Who knows what other works have been destined for us by our Creator?
Life is a gift from Allah; therefore, we must cherish every second of it and utilize it for seeking the pleasure of Allah, our Creator Who is All-Wise and All-Knowing. Since Allah alone knows what is best for us, we are to leave such decisions to Him and surrender to His will.
The Prophet (peace and blessings be upon him) said, “No one should wish death for any affliction that has befallen him. If he finds his situation unbearable, let him pray: “Allahumma ahyini ma kanati al-hayatu khayran li wa tawaffani ma kanat al-wafatu khayran li (O Allah, grant me life if life is good for me, and grant me death if death is good for me).” (Al-Bukhari)
Having said this, however, I must add a further note: There is nothing wrong— and, nay, it is indeed most meritorious —for a believer to pray to Allah to make death visit when he is in the best act or deed of his life.
One of the prayers of the salaf as-Salih (righteous predecessors) therefore was, “Allahumma ij`al khayra `amali khawatimahu, wa ij`al khayra yawmi yawma alqaka! (O Allah seal my life (of this world) with the most excellent and the best work of mine, and grant that the best day of my life be the day I look at Your face!)
Allah Almighty knows best.
Editor’s note: This fatwa is from Ask the Scholar’s archive and was originally published at an earlier date.