A person should not think that he deserves to have Hashem fulfill his request because he davened well. If he thinks like this, his sins will be examined. Rather, he should think, “Who am I? I am impoverished and empty. I can depend only on the loving-kindness of the Creator.”
(Tur, Orach Chaim, siman 98)