It depends on the form it is given as (iv, oral, extended release oral) as well as the kidney function of the patient.
For immediate release morphine
the half life (time for body to clear half) is 2-4 hours. With normal kidney function that means the parent drug (not metabolite) is gone in 8-16 hours) if the kidneys are working. Longer to much longer if they are not.