In the name of Allah The Merciful The Compassionate
The relation between our deeds and the Arrival of Imam Mahdi(aj
We are part of this world and when a part of the world's existence purifies and gets ready for the Arrival it means comparing to the same existence, world's frame is ready for the Arrival.
Example: When some one gets up for the night prayer it means that part of the world's existence is getting ready for the Arrival.
When some one is careful with his words, writings, behavior and actions and improves them, it means that part of the world's existence is getting ready for the Arrival.
Vice versa if they are taken towards corruption, it means that part of the world's existence is delaying the Arrival.
Of course the best of betters over comes the worst and destroys it.
(فصلت: 34) "ادفع بالتی هی احسن"
Repel the badness with your goodness: (Foselat: 34)
The whole world is like a body. If a member goes through goodness, all parts will follow it and if a part gets corrupted, all the existence will go into that way to that extent.
We follow Imam Ali's (A) quotation: to enter the spiritual appearance of our permenant behaviors and go out of our sensualities we ask God for help In the name of God the merciful the compassionate.
Part of Imam Khomaini's poem (R.h):
I came out of my nest with your memory
I saw your lovely eyes, so I broke up.