The men were opposed to Mr Uddin’s practice of Ruqyah, a form of exorcism which is regarded by some as “black magic”, said Jason Beer KC, counsel to the inquiry.
Mr Beer said sometimes this involved the use of amulets known as “taweez”, which can contain written verses of the Koran and can be worn around the neck.
This was of a “high degree of significance” in understanding the murder, he added.
The men sometimes referred to Mr Uddin as “Voldemort”, a reference to the villain in the Harry Potter novels, he said.
The inquiry heard that in August 2015, six months before the murder, police became aware of extremist posts on Facebook by a user later identified as Kadir.