Since your question is about the single-particle momentum operator, I will assume that we are dealing with a single particle moving in an arbitrary scalar potential. Suppose we start with
$$\langle p \rangle = m\frac{d\langle x\rangle}{dt}$$
and
$$\langle x\rangle = \int x|\psi|^2 dx = \int \psi^* x \psi\; dx.$$
Applying the time derivative to the above yields
$$\frac{d\langle x\rangle}{dt}=\int\frac{\partial\psi^*}{\partial t}x\psi+\psi^*\frac{\partial x}{\partial t}\psi+\psi^*x\frac{\partial\psi}{\partial t}\;dx$$
Since the operator $x$ has no explicit time dependence, the middle term is zero. In addition, the Schrodinger equation states
$$\frac{\partial\psi}{\partial t} = \frac{1}{i\hbar}H\psi.$$
Applying this to $\psi^*$, we have
$$\frac{\partial\psi^*}{\partial t} = \frac{-1}{i\hbar}\psi^*H$$
and substituting both of these in for the appropriate quantities in $\frac{d\langle x\rangle}{dt}$:
$$\frac{d\langle x\rangle}{dt} = \int\frac{-1}{i\hbar}\psi^*Hx\psi+\frac{1}{i\hbar}\psi^*xH\psi\; dx=\frac{1}{i\hbar}\int\psi^*[x,H]\psi\; dx.$$
Now all that is left is to calculate the commutator $[x,H]$. Since we're dealing with a single particle in an arbitrary scalar potential, we can write $H=\frac{p^2}{2m}+V(x,t)$ so that:
$$[x,H]=\left[x,\frac{p^2}{2m}+V(x,t)\right]=\left[x,\frac{p^2}{2m}\right]+[x,V(x,t)].$$
Since $V(x,t)$ is a function of $x$ alone*, we have that $[x,V(x,t)]=0$. We then use the commutator identity
$$[A,BC]=[A,B]C+B[A,C]$$
to write
$$\left[x,\frac{p^2}{2m}\right] = \frac{1}{2m}([x,p]p+p[x,p])=\frac{1}{2m}(i\hbar p+pi\hbar)=\frac{i\hbar}{m}p$$
since $[x,p]=i\hbar$. The representation of $p$ in the position basis is $-i\hbar\frac{\partial}{\partial x}$, so in the position basis
$$[x,H]=\frac{\hbar^2}{m}\frac{\partial}{\partial x}.$$
Finally, substituting, we have that
$$\frac{d\langle x\rangle}{dt} = \frac{1}{i\hbar}\int\psi^*[x,H]\psi\; dx = \int \psi^*\left(\frac{\hbar}{im}\right)\frac{\partial\psi}{\partial x}\; dx$$
so that
$$\langle p\rangle = m\frac{d\langle x\rangle}{dt} = \int \psi^*\left(\frac{\hbar}{i}\right)\frac{\partial\psi}{\partial x}\; dx.$$
*What I mean here is that $V$ is not a function of any other operators, and $t$ isn't an operator in quantum mechanics, only a parameter.