ride off into the sunset

ride off into the sunset

achieve a happy conclusion to something.
In the closing scenes of westerns, the characters are often seen riding off into the sunset after everything has been resolved satisfactorily.
See also: off, ride, sunset