what are the two factors that nullify the effects of worship?
الامام السجاد علیه السلام: مَا مِنْ شَيْءٍ أَحَبَّ إِلَى اللَّهِ بَعْدَ مَعْرِفَتِهِ مِنْ عِفَّةِ بَطْنٍ وَ فَرْجٍ وَ مَا مِنْ شَيْءٍ أَحَبَّ إِلَى اللَّهِ مِنْ أَنْ يُسْأَل.
Imam al-Sajjad (as): Nothing, after knowing God, is more favorite foe Him than chastity and eating religiously legitimate things; and nothing is more favorite for Him than requesting Him. (Tahf al-Uqul, p.282)
Exposition:
The reason why Imam proclaims the most favorite things for God, after knowing Him, to be chastity and eating religiously legitimate things, and does not metion other obligatory practices such as daily prayers, is that chastity is a preventive factor that hinders the disturbing factors, and the effect of facilitating factors. It is just like when someone uses nourishing and useful foods and at the same time takes in posionous materials; certainly, those foods would have no positive effect.
Similarly in spiritual matters, if someone worships a lot but takes in the viruses of sins regularly, his worships would have no effect. But if he does not darken the mirror of his heart by committing sins, his divine nature would guide him to growth and perfection.
Accordingly, giving up sins is more important than worshiping. This is why Satan temps human beings to commit sins more than tempting them to give up sorship. Indeed, when sins dominate human being, his worships will not lead him towards God.
Thus, the most favorite thing is giving up two sins: the sin of stomach (eating illegitimate things) which is related to mamonism, accumulating wealth ang greed, and the sin related to sexual desire.