How to get from surface normal to world rotation?

would be more logic if it was from Z vector, tried but does not work