A new quadrature formula associated with the ultraspherical polynomials