"O"_2" and "H"_2" are pure substances. They are diatomic elements and will never be the same gas at any temperature. They can chemically combine with one another to form the compound water, "H"_2"O", but that is a compound with very different properties compared to "O"_2" and "H"_2".