Question: What is the ruling on keeping a knife or an iron object near children for protection from the jinn?
Answer: This is not correct in practice, and there is no sound basis for it in the Shariah. The Shariah-prescribed way is to recite ruqyah over the children to protect them from the evil of Satan, just as the Messenger of Allah ﷺ used to recite ruqyah over Hasan and Husayn (may Allah be pleased with them both).
It is in Sahih al-Bukhari that the Messenger of Allah ﷺ would say these words for ruqyah:
أَعُوْذُ بِكَلِمَاتِ اللهِ التَّامَّاتِ مِنْ كُلِّ شَيْطَانٍ وَّهَامَّةٍ وَمِنْ كُلِّ عَيْنٍ لَامَّةٍ
“I seek refuge with the perfect words of Allah from every devil and every poisonous creature, and from every evil eye.”
Or one may supplicate to Allah for the protection of the children. To keep a knife, a blade, or some iron object and the like near children with the belief that it will protect them from the schemes of Satan is impermissible. May Allah grant us the ability to do what is correct. (Amin!)