Grammar forgiveness NOT granted. A far more correct sentence would be: "it certainly does matter to whom we pray". Your comment created the distraction, not the grammar errors.
As Churchill said about ending sentences with prepositions, "that is the sort of thing up with which I will not put."