Although I would know what you meant, it is not quite how it would be said. I would phrase it: "On my way home, I saw a humpback whale. It leapt out of the water about 50 meters away."
Thanks, Feebs. I thought it meant the whale came up to the water surface which contradicts with my interpretation of "out of the water". I didn't know whale could jump.
Is there an idiomatic expression for "came up to the water surface"?