When passing, you should move back into the right lane when:

Do not pass unless you have enough space to return to the driving lane. Before you return to the driving lane, be sure you have enough room between yourself and the vehicle you have passed. When you can see both headlights of the passed vehicle in your rearview mirror, it is safe to return to the driving lane.
DMV Writen Test Logo