Let $ax^2 + bxy + cy^2$ be a binary quadratic form over $\mathbb{Z}$. Let $D = b^2 - 4ac$ be its discriminant. It's easy to see that $D \equiv 0$ (mod $4$) or $D \equiv 1$ (mod $4$). Let $a$ be a positive odd integer. Then the Jacobi symbol $\left(\frac{D}{a}\right)$ is defined.
Is the following proposition true? If yes, how do we prove it?
Proposition Let $D \ne 0$ be a non-zero integer such that $D \equiv 0$ (mod $4$) or $D \equiv 1$ (mod $4$). Let $a$ and $b$ be positive odd integers such that $a \equiv b$ (mod $D$). Then $$\left(\frac{D}{a}\right) = \left(\frac{D}{b}\right)$$