where it is written that all happens due to our karma
In Jain Dharma, this principle is written as the law of karma: the soul experiences sukha-duḥkha according to the udaya (fruition) of its own karmas.
You will find this teaching mainly in:
- Tattvārtha Sūtra — especially in the chapters on karma-bandha, udaya, nirjarā, and moksha
- Uttarādhyayana Sūtra
- Bhagavatī Sūtra
The core Jain meaning is:
- nothing happens by random fate alone,
- each soul receives results according to its own karma,
- and by right conduct, austerity, and vigilance, karma can be stopped and shed.
A simple Jain statement of this truth is: “Jīva experiences results according to its own karma.”
If you want, I can also give you the exact Jain verse / sutra references for this teaching.