A man came to Hazrat Ibrahim ibn Adham, and said, "Abu Ishaq, I am unable to control myself and I continually wrong my own self, and I turn away from everything that invites me to improve my way of life. Please give me something to help me with it""If you accept five conditions," said Hazrat Ibrahim ibn Adham, "and are able to put them into practice, your disobedience will not cause you any problem and sinning will never harm you, and you can fulfil your desires as much as you want.""Just tell me what they are the man said. "The first is that when you want to disobey Allah you do not eat anything He provides." "Then how will I get anything to eat? Everything on the earth is from Him!" "So is it right to eat His provision and disobey Him at the same time?" replied Hazrat Ibrahim ibn Adham."No, it is not. What is the second condition?" "When you want to disobey Him, move off His land.""That is even more difficult! Exclaimed the man. "In that case where will I live?""Is it right to eat his provision and live on His land and then to disobey Him?" asked Hazrat Ibrahim ibn Adham. "No, it is not.""What is the third condition?" "When you want to disobey Him in spite of eating His provision and living on His land, find a place where He will not see you and disobey Him there.""What do you mean, Ibrahim? He knows everything that happens even in the most hidden places!" "So is it right to disobey Him when you eat His provision and live on His land and when you know that He can see everything you do?" "It certainly is not!" the man replied."Tell me the fourth condition." "That when the Angel of Death arrives to take your soul, you say to him, 'Give me chance so that I can repent and do good deeds.'""But he won't listen to me!" "Then if you cannot ward off death long enough to give yourself time to repent, and you know that when it comes there will be no chance, how can you hope to be saved?""What is the fifth?" "That when the angels of the Fire come to you to take you to the Fire, you do not go with them." "They will take me whether I like it or not!" exclaimed the man."So how can you hope to be saved?"The man replied, "Stop, stop! that is enough for me. I ask Allah to forgive me and I indeed repent to Him."The man then dedicated his life to the worship of Allah Ta’ala from that day.
This story presents us with conditions that if we fulfil them then we can be free to commit sin. However it soon becomes obvious that every condition is impossible to fulfil and therefore we should avoid sin to the best of our ability.