Abu Yazid Bistami was a deeply mystical Persian Sufi of the 9th c. CE who had great influence on the Sufis of his time. For a little more about him, see this post. He is reported to have said these thoughts.
Better than a virtuous act is the company of the virtuous, and worse than an evil act done is the company of the evil.
Depend not on your effort, but on His grace.
Consider the length of your life as TODAY and no more.