The equation of the line passing through point $ \left(0,~5\right) $, and point $ \left(-5,~1\right) $ is:
$$ 4x-5y+25=0 $$To find equation of the line passing through points $ A(x_A,y_A) $ and $ B(x_B,y_B) $, we use formula:
$$ y - y_A~=~\frac{y_B - y_A}{x_B - x_A}(x-x_A) $$In this example we have:
$$ \begin{aligned} & \left(0,~5\right) \implies x_A = 0 ~~\text{and}~~ y_A = 5 \\[1 em] & \left(-5,~1\right) \implies x_B = -5 ~~\text{and}~~ y_B = 1 \end{aligned} $$After substituting into the formula, we obtain:
$$ \begin{aligned} y - y_A~&=~\frac{y_B - y_A}{x_B - x_A}(x - x_A) \\[1 em] y - 5~&=~\frac{ 1 - 5 }{ -5 - 0 } \left( x - 0 \right) \\[1 em]y - 5 ~&=~ \frac{ 4 }{ 5 } \left( x - 0 \right) \\[1 em]y - 5 ~&=~ \frac{ 4 }{ 5 }x + 0 \\[1 em]y ~&=~ \frac{ 4 }{ 5 }x + 5 \end{aligned} $$