If Jinns can shape-shift into almost anything and everything, can they shape shift to people such as Prophets/Messengers like Esa, Suleiman, Muhammad, etc (Peace be upon them)
Jinn cannot appear like the Prophet Muhammad (SAW):
The Prophet said: "Whoever sees me in a dream will see me in his wakefulness, and Satan cannot imitate me in shape." (Sahih al-Bukhari)
I don't know about other prophets. I don't think there is an explicit hadith.