"Goodnight, my friend" is a common way to say "goodnight" to a friend in Engpsh. Other variations include "Goodnight, buddy" or "Sweet dreams, friend." It is a way to wish someone a restful sleep and express goodwill before going to bed.