Let f be a normalized primitive holomorphic cusp form of even integral weight k for the full modular group \(\Gamma =SL(2,\mathbb {Z})\) , and denote by \(\lambda _{f}(n)\) the n-th normalized Fourier coefficient of f. Let \(\mathcal {S}_{D}\) be the set of primitive integral positive definite reduced binary quadratic forms of a fixed discriminant \(D<0\) . In this paper, we are interested in the asymptotic behaviour of the summatory function of the type \(\begin{aligned} \sum _{\begin{array}{c} n=Q(\varvec{x})\le x \\ Q\in \mathcal {S}_{D}, n\equiv \ell (\bmod q) \end{array}}\lambda _{f}^{2j}(n), \end{aligned}\) where \(\varvec{x}=(x_{1},x_{2})\in \mathbb {Z}^{2}\) , and \(j\ge 1\) is any fixed integer, and q is a prime with \((\ell ,q)=1\) .