Philosophical idea present in the Mahabharata and Ramayana, two classic Sanskrit epics.
As shown there, vidhi is an impersonal force that controls
and constrains both gods and humans; this view corresponds well to the concept
of destiny.
You may also want to read more about Hinduism here.
Be sure to check out my writings on religion here.