Find closest multiple of $23$ to $123$. We see that $5 \times 23 = 115$ is the nearest. Now subtract $115$ from $123$ to get reminder $8$. Add $5$ to quotient.
Since $8$ is less than $23$, stop the division. The reminder is $8$. The topmost line $005$ is the quotient. Remove all zeros at the start of the quotient to get the actual quotient $5$.