On 29 October 2020, in the aftermath of the 2020 Nice stabbing, Mohamad posted controversial remarks on his blog. Regarding the murder of Samuel Paty, Mahathir said it was against "the teachings of Islam", and "the killing is not an act that as a Muslim I would approve". He also said: "The French in the course of their history has killed millions of people. Many were Muslims. Muslims have a right to be angry and to kill millions of French people for the massacres of the past. But by and large the Muslims have not applied the ‘eye for an eye’ law. Muslims don't. The French shouldn't. Instead the French should teach their people to respect other people's feeling." Mahathir's post was later circulated on his Twitter account. His tweet was latter labeled by Twitter for "glorifying violence".