US President Donald Trump asked Turkey to "persuade" Hamas to accept his plan for ending the Gaza war, President Recep Tayyip Erdogan said in a transcript shared by his office Wednesday, AFP reports.

His remarks came as negotiators from Israel and Hamas were due to hold a third day of indirect negotiations in the Egyptian resort town of Sharm El-Sheikh aimed at halting the two-year Gaza war, alongside senior officials from Qatar, Turkey, and the US.

"Both during our visit to the United States and in our most recent phone call, we explained to Mr. Trump how a solution could be achieved in Palestine. He specifically requested that we meet with Hamas and persuade them," Erdogan told Turkish journalists late Tuesday on board a plane returning from Azerbaijan.

The meeting between Trump and Erdogan was held in late September at the White House.