
IMAGE SOURCE, PA MEDIA Image caption, Sir David was attacked during a meeting with his constituents
By Marie Jackson
BBC News
Police said the man was being held at a London police station under the Terrorism Act 2000 and officers had until 22 October to question him.
The BBC understands Mr Ali was referred to the UK’s counter-terrorist Prevent scheme some years ago.
But he was never a formal subject of interest to the security service, MI5.
Officials do not believe anyone else was involved in the attack.
It is thought Mr Ali did not spend long in the Prevent programme – which aims to stop people becoming radicalised.
Engagement in the scheme is voluntary and it is not a criminal sanction.
Sir David, a Conservative MP since 1983, was holding a regular Friday meeting with constituents at Belfairs Methodist Church in Leigh-on-Sea, Essex, when he was stabbed multiple times.
Speaking to the gathering, Southend councillor Alan Dear said Sir David was kind, loving and gentle – “a gentleman and a gentle man”.

Mr Ali was initially arrested on suspicion of murder and held in Essex, but has since been transferred to London where he was further detained under Section 41 of the Terrorism Act.
In a statement, the Met Police said a knife used in the attack had been recovered at the scene.
Officers spent Saturday searching three addresses in the London area. A post-mortem examination also took place on Saturday, the police added.
- Obituary: Sir David Amess
- Did you witness the attack? Email haveyoursay@bbc.co.uk
Sir David is the second MP to be killed in recent years, following the murder of Labour MP Jo Cox in June 2016.
The latest attack has raised concerns for the safety of MPs, many of whom hold constituency surgeries which anyone can attend.
Home Secretary Priti Patel said security measures were being put in place to protect MPs – but insisted they would carry on serving the country unimpeded.
“We cannot be cowed by any individual or any motivation… to stop us from functioning, to serve our elected democracy.”
Ms Patel maintained a balance could be found to allow face-to-face meetings with constituents to continue.
However, Conservative MP Tobias Elwood – who came to the aid of a stabbed police officer during the 2017 terror attack in Westminster – suggested MPs speak to constituents on the phone or over Zoom for the time being.
Labour MP Diane Abbott said she would prefer to meet constituents behind a screen to prevent possible stab attacks.
And Kim Leadbeater, the sister of Mrs Cox, said her partner had asked her to stand down as MP for Batley and Spen after Sir David’s death.


Tributes to Sir David have been pouring in from politicians as well as his local constituents.
The prime minister described him as “one of the kindest, nicest, most gentle people in politics”, with an “outstanding record of passing laws to help the most vulnerable”.
Ms Patel called Sir David a “man of the people” who was killed doing “a job he loved”.
Members of Southend-On-Sea’s Muslim community said, in a joint statement, his death was an “indefensible atrocity” and that Sir David would be remembered for his warmth, selflessness and kindness.