Step 1: Magnetic field due to finite straight wire.
Magnetic field at a point at perpendicular distance \(r\) from a finite wire is:
\[
B = \frac{\mu_0 i}{4\pi r}(\sin\theta_1 + \sin\theta_2)
\]
Step 2: Use geometry from given figure.
In the figure, point \(P\) is at distance \(r=l\) from the midpoint of wire and makes equal angles.
So,
\[
\theta_1 = \theta_2 = 45^\circ
\Rightarrow \sin\theta_1 + \sin\theta_2 = 2\sin45^\circ = 2\cdot\frac{1}{\sqrt{2}} = \sqrt{2}
\]
Step 3: Substitute values.
\[
B = \frac{\mu_0 i}{4\pi l}(\sqrt{2})
= \frac{\sqrt{2}\mu_0 i}{4\pi l}
\]
But since the point \(P\) is at end geometry as per diagram, effective factor becomes half, giving:
\[
B = \frac{\sqrt{2}\mu_0 i}{8\pi l}
\]
Final Answer:
\[
\boxed{\dfrac{\sqrt{2}\mu_0 i}{8\pi l}}
\]