Kindly refer to the following link(s):
103436: Ruling on using bukhoor (incense) to expel devils (IslamQ&A)
Bukhoor (incense) to ward off devils? | Sheikh Assim Al Hakeem
Praise be to Allaah.
I do not know of any basis in sharee’ah for doing this, and it should not be done, because it is a myth that has no basis. Devils can only be expelled by reciting a lot of dhikr and reading Qur’aan and seeking refuge in the perfect words of Allaah from the evil of that which He has created. It is proven that the Prophet (peace and blessings of Allaah be upon him) said: “Whoever stops to rest and says, ‘A’oodhu bi kalimaat Allaah il-taammah min sharri ma khalaq (I seek refuge in the perfect words of Allaah from the evil of that which He has created),’ nothing will harm him until he moves on from that place.” A man said: O Messenger of Allaah, I was stung by a scorpion last night. He said: “If you had said, A’oodhu bi kalimaat Allaah al-taammah min sharri ma khalaq (I seek refuge in the perfect words of Allaah from the evil of that which He has created), it would not have harmed you.” And he (peace and blessings of Allaah be upon him) said: “Whoever says in the morning, ‘Bismillaah illaahi laa yadurru ma’a ismihi shay’un fi’l-ard wa la fi’l-sama’ wa huwa al-samee’ ul-‘aleem (In the name of Allaah with Whose name nothing is harmed on earth nor in heaven, and He is the All-Hearing, All-Knowing)’ three times, nothing will harm him until evening comes, and whoever says it when evening comes, nothing will harm him until morning comes.”
I ask Allaah to help us and you and all of our brothers to attain beneficial knowledge and act upon it, for He is All hearing and Ever Near. End quote.