In Hinduism, the concept of life and death is intricately tied to the belief in karma and reincarnation. According to Hindu philosophy, the soul (atman) is eternal and undergoes a cycle of birth, death, and rebirth (reincarnation) through different lifetimes. The circumstances of each life are believed to be influenced by one's actions and karma from previous existences.
While Hinduism does acknowledge the existence of deities and gods, the idea of a god telling an individual the exact time of their death is not a common or standard belief in Hindu theology. Hindu gods are often seen as beings who guide and protect, but the focus is more on the devotion, worship, and seeking their blessings rather than receiving specific life predictions.
The thought you describe, where a god tells you when you are going to die, seems more like a personal and individual idea rather than a common belief within Hinduism. It's essential to differentiate between personal thoughts, feelings, or anxieties, and established religious beliefs or practices.
Additionally, the notion of knowing one's exact time of death can be distressing for many individuals. It's natural for people to have occasional intrusive or unsettling thoughts. If such thoughts are causing distress or interfering with daily life, it might be helpful to discuss them with a mental health professional or a trusted person who can provide support and guidance. They can help you differentiate between genuine religious beliefs and concerns arising from other psychological factors, such as anxiety or obsessive-compulsive tendencies.