This question is not only philosophical, but every thinking person arises at some time or the other. Are good or bad actions that happen in our lives the result of our own decisions, or are all these determined by nature, luck or any invisible power? The answer to this question is not simple, but it can be understood from different approaches.
Indian philosophy, especially Vedanta and Gita, believe that man is the doer of his deeds. In the Bhagavad Gita, Lord Krishna says to Arjuna –
Some philosophers believe that humans are only a medium, and real doors are the powers of nature or universe. Nature (or God) determines the events happening in the life of every living being. Astrology also emphasizes this idea. According to this, events occur in human life according to the position of the planets, the horoscope and the cycle. In such a situation, man is not responsible for auspicious and inauspicious actions, but nature is the doer.
The approach to modern philosophy and psychology is that man’s decisions are the combined results of his circumstances, mood, surroundings and biological tendencies. For example, if a person gets angry and harms someone, then he can be decided as well as the effect of his mental state. Thus, man is not completely independent, but is not completely bound. This is a combination – where nature affects him to some extent, and to some extent he decides himself.
This complex question may not be answered from any one point of view.
If you look from a religious point of view, then karma is the dominant.
If you look from a scientific point of view, nature and circumstances only affect the decisions.
And if you look spiritually, then all this is part of a divine plan.
The truth is probably in the middle of all this – man has an independent desire, but he is not completely independent. Nature gives him direction, but the final decisions are its own. This is the complexity and beauty of life.