Sword Throw and Recall Game Mechanics

Hello, I am trying to create the ability of my player character to throw and recall his sword. I want the sword to get stuck in the object at which it was thrown. As it gets stuck the rotation of the sword must be rotated according to the normal of the hit location. I don’t know how to orient the sword accordingly. Please help. I’ve attached the screenshot of what I’ve tried. It works in some conditions but not in many.

Thank You

Eyo,

Save both values, make them into rotations and then update them in tick, here is an example: