Those who make claims without any evidence believe that those whom they accuse, are responsible for either the death of a family member, illness, or misfortune.
By giving his ruling, Judge Usman Naabba said the prosecution had proved the case against five men for reasonable doubts.
Prosecutor Sonordiki said he hoped that the decision would restrain others from charges against illegal charges and then take cases.
The court heard that the victim was killed after a sick wife of one of the accused Abdulaz Yakhay, dreamed that she was persecuted by Mrs. Abubakar, who kept a knife.
Then Yakha organized the group to withstand Ms Abubakar, which led to her murder.
“There were similar cases, but this is the first time we see up to five people sentenced to death for murder from an unlawful charge of witchcraft,” Mr. Sonordiki said in the BBC.
The son of the victim Musa Yahay said that on the day his mother was killed, he was the worst day in his life and that he was pleased to see justice.
“I’m happy because they will get the same as they sent my mother,” he said.
The defense lawyer Maaruf Yakosay said his customers plan to appeal the verdict.
The death penalty is rarely carried out in Nigeria, and the convicts often spend the rest of their lives in the death cell.