(CNN) US President Donald Trump told Turkish President Recep Tayyip Erdogan the US was "done" with Syria as the pair discussed the possible withdrawal of US forces from the country.

Erdogan was explaining all the problems with the US presence in Iraq and Syria and was irritating Trump, according to a senior administration official who received a detailed readout of the phone call between both presidents.

"OK, it's all yours. We are done," Trump said, according to the source.

Erdogan made his case to Trump during the December 14 call that the US should pull out of Syria by pointing to the near-total defeat of ISIS in the country, according to a separate source familiar with the call. The President then sought assurances from Erdogan that Turkey would continue to fight ISIS and defeat the terrorist group.

Read More