Sir David, MP for Southend West, was stabbed during a constituency surgery in Leigh-on-Sea, Essex, on 15 October.
Ali Harbi Ali stabbed Sir David repeatedly in an “assassination for terrorist purposes”, the jury heard.
The 26-year-old from London denies murder and preparing acts of terrorism.
Opening the trial at the Old Bailey in London, prosecutor Tom Little QC described the defendant as a “radicalised Islamist terrorist” and called it a “murder carried out because of a warped and twisted and violent ideology”.
“This was nothing less than an assassination for terrorist purposes,” he said.
“It is a crime to which, we say, he has no defence.”
Moments before the stabbing the defendant’s phone made a sound and he said “sorry” before repeatedly stabbing the MP, the prosecution said.
A post-mortem examination showed Sir David suffered 21 stab wounds to his face, arms, legs and torso, as well as injuries to both hands that were consistent with defending himself.
Ali Harbi Ali “had for a number of years been determined to carry out an act of domestic terrorism”, the Old Bailey heard
The court heard Mr Ali had requested an appointment with Sir David under the pretence he was moving to the area and he provided a postcode to verify this.
Mr Little told jurors that Mr Ali appeared “relaxed and chatty” as he walked over to Sir David just before he “brutally” stabbed him in a “vicious and frenzied attack” shortly after midday on 15 October.
Two people arriving for the next appointment heard cries for help from the MP’s aides while Mr Ali continued to wave a bloody knife shouting “I killed him, I killed him”, the court was told.
Mr Little said the defendant then shouted to those in the church: “I want him dead. I want every Parliament Minister [sic] who signed up for the bombing of Syria who agreed to the Iraqi war to die.”
The defendant was then heard on the phone saying: “I’ve done it because of Syria. I’ve done it because of the innocent people. I’ve done it because of the bombing.
He deserved to die.”
During a confrontation he refused to drop his knife and said he wanted to be shot and “I want to die; I want to be a hero”.
Mr Little said that around the time of the attack, the defendant sent a long message to friends and family with a video relating to Raqqa in Syria.
Instead of firearms officers Mr Ali was initially confronted by two plain clothes Essex Police officers, the court heard.
Mr Little said the pair “bravely decided” to enter the building armed only with a baton and incapacitant spray.
He added: “The defendant hoped that he would be shot, killed, a martyr for the terrorist cause.
“However, this was not outside the Houses of Parliament, central London, but Leigh-on-Sea and the first police attenders were not firearms officers but PC Scott James and PC Ryan Curtis.”
Mr Little said the defendant had researched a list of “523 MPs who carried out a vote to carry out airstrikes in Syria”, using the website theyworkforus.com.
He carried out reconnaissance trips including six different visits to Michael Gove’s address in west London in 2021.
Evidence recovered from his phone suggested he had been on the road where the secretary of state for communities and levelling up lived, the prosecution said.
A note entitled “plans” from 2019, examined possible ways to attack Mr Gove including bumping into him while the MP for Surrey Heath was out jogging.
Data from the defendant’s mobile phone also placed him in the proximity of the Houses of Parliament seven times between July and September 2021, the court was told.
Mr Little told the jury: “Being blunt about it, he’s not a tourist… looking at Big Ben and taking some photographs.
“This is terrorist planning.”
Mr Ali, of Kentish Town, north London, appeared in the dock wearing a black robe and black-rimmed glasses.
The jury were told by the prosecution that Mr Ali’s mental health did not form any part of his defence.
The trial was adjourned until Tuesday.
Source(s): BBC News