In actual fact it is as follows:-
In any right triangle, the area of the square whose side is the hypotenuse is equal to the sum of the areas of the squares whose sides are the two legs.
This is usually summarized as follows:
The square of the hypotenuse of a right triangle is equal to the sum of the squares on the other two sides.