If you are off the green and play your approach and your ball impacts your playing partner's ball, your ball will be played from where it lays, but your friend's ball will be returned to its original location. There will be no penalty incurred, and there will be no penalty in match play.