Wave equation for Gravitational wave(GW) comes from Einstein field equation in general relativity, with linearized approximation. Einstein equation is originally non-linear DE, but we can approximate it become linear. Set metric:
$$g_{\mu\nu} = \eta_{\mu\nu} + h_{\mu\nu}, \; |h_{\mu\nu}| \ll 1$$
Calculate Christoffel symbol, Riemann curvature tensor, and so on. These things consist of many derivative terms of metric, but we only consider 1st-order $\mathcal{O}(h_{\mu\nu})$ terms. Then, Einstein equation will be reduced in linear DE. (I skip many details of process to derive wave equation from Einstein equation)
Small perturbation of metric $h_{\mu\nu}$ can be decomposed in each component $h_{00}, \; h_{0i}, \; h_{ij}$. For simplicity, we will use only spatial part with transverse gauge. Also, assume it is vacuum case. Then, DE is reduced like that:
$$\square h_{\mu\nu} = 0 $$
where $h_{\mu\nu}$ satisfies $h_{0 \nu} = 0$ (purely spatial), $ \eta^{\mu\nu} h_{\mu\nu} = 0$ (tracelss), $\partial_{\mu} h^{\mu\nu} = 0$ (transverse).
General solution of this DE is plane wave.
$$h_{\mu\nu} = C_{\mu\nu} e^{i k_{\sigma} x^{\sigma}}$$
and $C_{\mu \nu}$ will have such form. (assume propagating to $z$ direction)
$$C_{\mu\nu} = \begin{pmatrix}
0 & 0 & 0 & 0 \\
0 & C_1 & C_2 & 0 \\
0 & C_2 & -C_1 & 0 \\
0 & 0 & 0 & 0
\end{pmatrix} $$
If we recover inhomogenous term in RHS,
$$\square h_{\mu\nu} \simeq 8 \pi G T_{\mu\nu} $$
then solution can be expressed with Green function and retarded time.
$$h_{\mu\nu}(t, \vec{x}) \simeq 8 \pi G \int \frac{1}{4\pi |\vec{x}-\vec{y}|} T_{\mu\nu}(t',\vec{y}) d^3 y $$
where $t = t' + |\vec{x}-\vec{y}|$
$\textbf{Edit}$
Here is a brief process of linearization:
Terms in Christoffel symbol are replaced to $h_{\mu\nu}$ instead of $g_{\mu\nu}$.
$$\Gamma^{\rho} _{\mu \nu} = \frac{1}{2} \eta^{\rho \lambda} (\partial_{\mu} h_{\nu \lambda} + \partial_{\nu} h_{\mu \lambda} - \partial_{\lambda} h_{\mu\nu} ) $$
$O((h_{\mu\nu})^2)$ order terms in Riemann curvature tensor are neglected. Also, Ricci tensor $R_{\mu\nu}$ and Ricci scalar $R$ have linear forms, too.
$$R_{\mu\nu\rho\sigma} = \eta_{\mu\lambda} \partial_{[\rho,} \Gamma^{\lambda}_{\sigma],\nu} + O((h_{\mu\nu})^2) $$
Now, put them all to Einstein equation, then linearized form is yieleded.
$$ R_{\mu\nu} - \frac{1}{2} Rg_{\mu\nu}
= 8\pi G T_{\mu\nu} $$
$$\frac{1}{2} (\partial_{\sigma}\partial_{(\nu,} h^{\sigma} \; _{\mu)} -\partial_{\mu} \partial_{\nu} h - \square h_{\mu\nu} - \eta_{\mu\nu} \partial_{\rho}\partial_{\sigma} h^{\rho \lambda} + \eta_{\mu\nu} \square h ) = 8\pi G T_{\mu\nu} $$
Some redudant terms can be removed with transverse gauge assumption.