Committing sin and transgression against the commandments of the holy household of the Prophet (peace be upon them) is so ignominious and devastated that is possible to destroy the best conditions of divine men. Base on this, committing sin did not only prevent the establishment of spiritual atmosphere rather it has potentiality of destroying the already established conditions.
Daud Raqqi has transmitted this narration from Imam Sadiq (peace be upon him) which says:
He said: I heard Aba Abdullah (peace be upon him) saying: mindful of your duty to Almighty Allah and do not envy one another, indeed tourism is among the law of Prophet Isa the son of Mary (peace be upon him). One day he went out while he was accompanied by one of his companion who always spent his time with Prophet Isa the son of Mary (peace be upon him), when he came to a sea he said: “in the name of Allah” with authentic certainty from him he walk on top of the water, when this his companion saw him he also with the authentic certainty he say “in the name of Allah” and he also start walking on the water and meet with Prophet Isa (peace be upon him) but pride over took him.
He said: this is Prophet Isa (peace be upon him) the spirit of Allah walking on the water and I am also walking on the water, then what is his virtuousness over me? Imam (peace be upon him) said: by saying this he sink inside the water and consequently he seek the assistance of Prophet Isa (peace be upon him) and he took him out of the water. Then Prophet Isa said: O’ Qaseer what have you said? I said: this Prophet Isa walking on top of the water and I am also walking on top of the water and I am taken over by pride.
Prophet Isa (peace be upon him) said: you put yourself other than the place Almighty Allah kept you and Almighty Allah tested you with what you have said. Imam (peace be upon him) said: the man repented and Almighty Allah returns him to his former rank. So, be mindful of your duty to Almighty Allah and don’t envy each other.
This narration is obvious evidence to this reality that committing sin is able to take away the best condition of a good servant of Allah, rather it can also fall them from their spiritual peak.
 - Bihar al-Anwar volume 73 page 244; Usul al-Kafi volume: 2 page 306.