No, in Islam, no person definitively knows when they are going to die.
Islam teaches that the knowledge of when a person will die is exclusively with Allah (God). This understanding encourages believers to live righteous lives, constantly seeking repentance and performing good deeds, as death can come at any time. The referenced text emphasizes that because no one knows their time of death, a wise person prepares for the afterlife by rectifying past mistakes and engaging in virtuous actions. They remain in this state of preparedness until Allah takes their soul.
Therefore, rather than focusing on knowing when death will occur, Islam directs attention to preparing for it through faith, good deeds, and repentance.