My Lord, You have given me [something] of sovereignty and taught me of the interpretation of dreams. Creator of the heavens and earth, You are my protector in this world and in the Hereafter. Cause me to die a Muslim and join me with the righteous."
اردو — مودودی
اے میرے رب، تو نے مجھے حکومت بخشی اور مجھ کو باتوں کی تہ تک پہنچنا سکھایا زمین و آسمان کے بنانے والے، تو ہی دنیا اور آخرت میں میرا سرپرست ہے، میرا خاتمہ اسلام پر کر اور انجام کار مجھے صالحین کے ساتھ ملا"
Bahasa Indonesia — Kemenag
Ya Tuhanku, sesungguhnya Engkau telah menganugerahkan kepadaku sebahagian kerajaan dan telah mengajarkan kepadaku sebahagian ta'bir mimpi. (Ya Tuhan) Pencipta langit dan bumi. Engkaulah Pelindungku di dunia dan di akhirat, wafatkanlah aku dalam keadaan Islam dan gabungkanlah aku dengan orang-orang yang saleh.
Ibn Kathir
Yusuf begs Allah to die as A Muslim
This is the invocation of Yusuf, the truthful one, to his Lord the Exalted and Most Honored. He invoked Allah after His favor was complete on him by being reunited with his parents and brothers, after He had bestowed on him prophethood and kingship. He begged his Lord the Exalted and Ever High, that as He has perfected His bounty on him in this life, to continue it until the Hereafter. He begged Him that, when he dies, he dies as a Muslim, as Ad-Dahhak said, and to join him with the ranks of the righteous, with his brethren the Prophets and Messengers, may Allah's peace and blessings be on them all. It is possible that Yusuf, peace be upon him, said this supplication while dying. In the Two Sahihs it is recorded that `A'ishah, may Allah be pleased with her, said that while dying, the Messenger of Allah ﷺ was raising his finger and said - thrice,
«اللَّهُمَّ فِي الرَّفِيقِ الْأَعْلَى»
ثَلَاثًا (O Allah to Ar-Rafiq Al-A`la the uppermost, highest company in heaven.) It is also possible that long before he died, Yusuf begged Allah to die as a Muslim and be joined with the ranks of the righteous.
المُيَسَّر
ثم دعا يوسف ربه قائلا ربِّ قد أعطيتني من ملك "مصر"، وعلَّمتني من تفسير الرؤى وغير ذلك من العلم، يا خالق السموات والأرض ومبدعهما، أنت متولي جميع شأني في الدنيا والآخرة، توفني إليك مسلمًا، وألحقني بعبادك الصالحين من الأنبياء الأبرار والأصفياء الأخيار.