Q: I would like to know about authenticity of the following incidence, this dua is known as 'Hirz Abu Dujana'. Imam-i Baihaki says in his book Dalail-un- nubuwwa and Imam-i Qurtubi in his book Tazkira that Abu Dujana said, "I was lying down, when I heard a noise like the noise of a mill or that of the leaves of a tree and saw a flash like lightning. I raised my head to see something black that was rising in the middle of the room. I felt it with my hand. It was like a porcupine's skin. It began to throw things like sparks at my face. At once I went to Rasulullah and told him what had happened. He said, 'O Aba Dujana! May Allah give your home goodness and abundance!' He asked for a pen and a piece of paper. He had Ali 'radiAllahu anh' write a letter. I took the letter to my home. I put it under my head and went to sleep. A yelling voice woke me up. It said, 'O Aba Dujana! You have burned me with that letter. Your owner is certainly much higher than we are. There is no way of escape for us, except that you remove that letter. We shall no longer come to your home or your neighbors.' We cannot go to places where the letter is.' I told him that I could not remove the letter without getting my owner's permission. The night seemed very long to me because of the crying and wailing of genies. After performing the morning prayer in the mosque, I told Rasulullah what the genie had said. Rasulullah 'sallAllahu alaihi wa sallam' said, 'Remove the letter. Or else they will suffer the letter's pain till the Resurrection.'"
This dua is also found in Hazrat Maulana Ashraf Ali Thanvi[RA] 's Bahishti Zewar.
I have also heard that some Fuqha have considered it as a fabrication, please explain its authenticity.