The expression is "to turn one's back on somebody", not "the back". It means to refuse to help somebody. " To have one's back to somebody is not an expression.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.