ANSWER: Of course he is sinful! He must have stepped back and not allow her to touch him, let alone hug as Prophet ﷺ said its better to be stabbed in the head by an iron needle than to touch a non mahram 

Read more