How do I stop wasting my time? like sometimes I am indulged In my religious affairs but then after some time I often find myself wasting my time

Some recommendations:

1- Remember how short life is, and how valuable time is. That infinite hereafter is based on these hours and minutes. Thinking about this motivates you.

2- See which member of Ahlulbayt (a) you personally connect to the most, and make a commitment to them that you won’t waste your time.

3- Have a daily planner and plan every hour of your day.

4- Have friends/family motivate you to stick to your schedule.

5- Do wudhu and curse the shaytan when you feel you wasting your time.