Imam Baqir (pbuh) said: the servant wants something from Allah Almighty which is required to be met and carried out sooner or later, then the servant commits a sin and Allah Almighty orders the agent angel, who is responsible for fulfilling what servant are begging Allah, not to fulfill what the servant has asked for and deprive him of what he wanted, because he has exposed himself to my wrath and he deserves being deprived.
Source: Islamic mysticism, vol. 13
source : erfan.ir