TOKYO (Reuters) - Japanese Prime Minister Shinzo Abe said on Wednesday that Tokyo will give Malaysia two patrol boats, a move that visiting Malaysian Prime Minister Najib Razak welcomed as an aid to promoting stability in the South China Sea.

Najib arrived in Japan on Tuesday on a visit that comes just weeks after he was in China on a six-day visit in which he agreed to buy four Chinese patrol boats in his nation's first significant defense deal with China.

"Today's agreement - Japan is willing to hand over two decommissioned patrol vessels to our maritime enforcement agency - shows the nature of our relationship is now broad-based," Najib said.

Malaysia, along with three other members of the Association of Southeast Asian Nations (ASEAN) - the Philippines, Vietnam and Brunei - are among the countries contesting territorial claims with China over the South China Sea. China claims nearly the entire body of water as its territory.

Najib said talks with Abe touched on this issue, adding: "Malaysia continues to play its part to ensure the South China Sea will be an area of peace and stability, without which we cannot achieve prosperity."

Discussions also included the planned high-speed rail link between Singapore and the Malaysian capital of Kuala Lumpur, set to be built by 2026 and with the two neighbors set to finalize a bilateral agreement in December.

Japan has expressed interest in the project, and Najib said he had assured Abe that the bidding process would be conducted in a fair and transparent way.

(Reporting by Elaine Lies; Editing by Simon Cameron-Moore)