I am looking for a exact derivation of a relation between redshift $z$ and distance $d$.
What I know is the definition $$z=\frac{\lambda_{\text{observed}}}{\lambda_{\text{unshifted}}}-1=\sqrt{\frac{1+\frac{v}{c}}{1-\frac{v}{c}}}-1$$ and that the Hubble constant $H$ as a function of $z$ is: $$H^2=H_0^2\left(\Omega_m\left(1+z\right)^3+\Omega_{\Lambda}\right)$$
How can I use this to derive the distance?