David Cameron attempted to defend his legacy in Scotland after the SNP denounced him as the man who delivered the Brexit result.

The SNP's Westminster leader Angus Robertson told the outgoing Prime Minister he would be remembered as the man who took Scots to the "brink" of leaving the EU.

He wished Mr Cameron well, but said he could not cheer his time in office.

"Notwithstanding our differences I genuinely extend my best personal wishes to the Prime Minister and to his family," he said.

"I wish them all the best.

"However, the Prime Minister's legacy will undoubtedly be that he has taken us to the brink of being taken out of the European Union, so we will not be applauding his premiership on these benches.”

READ MORE: No applause from SNP as David Cameron steps down as Prime Minister

Mr Robertson also attacked Mr Cameron’s record, including next week's planned Trident vote.

The Herald:

The former Tory leader hit back insisting that "many people in Scotland support our nuclear deterrent".

He added: "You ask about the record of this Government when it comes to Scotland, well I'll tell him what it is: 143,000 more people in work in Scotland, massive investment in the renewable industries in Scotland, the two biggest warships ever built in our history built in Scotland, a powerhouse parliament, a referendum that was legal, decisive and fair, and I might add a Scotsman winning Wimbledon twice while I was Prime Minister."

READ MORE: Trident challenge for Theresa May as support for renewal falls

The SNP's Carol Monaghan, the MP for Glasgow North West, hit out saying he left behind “broken vows, Brexit and the likely renewal of weapons of mass destruction on the Clyde.”

However, she told him, his time in the job had “done more for Scottish independence than many of us on these benches could ever hope to do."

Mr Cameron rejected the criticism, saying that his Government had delivered on the Vow made in the run up to 2014’s independence referendum.

READ MORE: "I was the future once": David Cameron signs off as British Prime Minister

He added: "I've talked many times at this despatch box about creating this powerhouse parliament; what I haven't seen is the SNP using any of the powers they have now got."