This is a simple problem from Five Hundred Mathematical Challenges:
“Problem 24. Let P be the center of the square constructed on the hypotenuse AC of the right-angled triangle ABC. Prove that BP bisects angle ABC.”
See the Center of Square Problem