Munawar Hussain, 58, stabbed the shop manager in the neck and chased her through the store in Burnley, before turning his rage on a shopper on the morning of December 2, 2020.
The defendant stabbed the customer in the arm and tried to land a blow in her back as she lay on the floor, but "mercifully" the blade of his kitchen knife snapped from the handle after it became stuck in her handbag strap.
Hussain fled and was detained outside by a store security guard and members of the public before police arrived, Manchester Crown Court heard.
Following his arrest, a note written in Urdu was discovered on him which read: "'O Israel, you are inflicting atrocities on Palestinians and Marks Spencer helping you financially."
Alex Leach QC, prosecuting, said the defendant earlier walked to the store from his home in Murray Street, Burnley, and launched his attack just moments after he entered and asked to speak to a manager.
He said it became apparent to police officers he had a history of mental health problems but doctors later deemed him fit to answer questions the following March.
Mr Leach said: "He told the police that he had targeted Marks & Spencer deliberately because he believed Marks & Spencer funded Israel in what he described as its persecution of Palestine.
"He said that had his knife not broken he would have gone on to kill others. He said that he expected that the police might kill him and he intended to be a martyr."
Store manager Samantha Worthington suffered a collapsed lung and nerve damage from the blow near to her jugular vein.
She told police her assailant was wearing a Covid mask and recalled his eyes "looked pure evil".
Ms Worthington said: "If I had fallen he would have killed me. I just thought 'this f***er is not having me, I've got three kids and he is not taking me away from my kids'. I'm lucky to be here."
Jurors were told Hussain does not dispute stabbing the women and the issue for them to decide was what his intention was at the time.
The Crown submit it was "overwhelmingly clear" from the evidence that Hussain had such intentions.
He denies the attempted murder of Ms Worthington and customer Janet Dell.
He has also pleaded not guilty to two alternative counts of wounding with intent.
The trial continues on Wednesday.
Thanks for reading. If you value what we do and are able to support us, a digital subscription is just £1 per month for the first two months. Try us today by clicking HERE.