We the Sadhakas should always keep in mind that whatever good we are doing is all due to the grace of the Guru and God. Otherwise, we have been bound by maya, awfully attached to the worldly possessions, absolutely worthless, having hideous ideas, full of dirt and filth from time immemorial.
If we are able to do something good, if a tear trickles from our eyes for God, if we have some good word and noble feeling for the Guru, we must conclude that it is all due to the Guru's grace.
If he had not given us the spiritual knowledge, if he had not bestowed his love upon us, how would we be inclined to do good things in life? So, do not ever give credit to yourself. It will only give rise to egoism. Egoism takes away humility. Once humility is gone the castle of bhakti or devotion will come crashing down. Life will be filled with vices in no time. So, if you have done some noble deeds, YOU MUST BE THANKFUL TO THE GURU with whose grace alone you are able to do such good things. This will save you from the vice of egoism.
We must always keep in mind that if we had not met the Guru, if he had not shown us the way, and had not given us his love and affection, we would not have inclined towards God.
On the other hand, if we have done something wrong, have been negligent in doing the right thing, or have committed some crime, we should hold ourselves responsible for that, so that we could realize our mistakes and we would not repeat them.
We should attribute our good deeds to the God's grace and the grace of the Guru and for all the wrong that we may have done, we should hold ourselves responsible.