How to rotate plane regarding to surface

Hello People so I have this problem I want to position a plane on a wall surface using Raycaster
currently, I put it on the wall but not parallel to the wall surface any idea how can I achieve the.