Watch the The Distance online guitar lesson by Robbie Calvo from 50 R&B Licks You MUST Know

This is a very melodic phrase derived from the D natural minor scale. You can see the D minor chord under this scale shape at the 5th fret.

You'll also notice that I played some string skipping ideas too.