Dead souls may not return to the world of livings.
According to Qur'an:

سورة المؤمنون، الآيات 99 و100
[For such is the state of the disbelievers], until, when death comes to one of them, he says, "My Lord, send me back
That I might do righteousness in that which I left behind." No! It is only a word he is saying; and behind them is a barrier until the Day they are resurrected.
Surat Al-Mu'minūn, Ayas 99, 100.
And according to Hadith:
روى الترمذي وابن ماجة عن جابر بن عبد الله بن عمرو بن حرام، يحكي عن
استشهاد أبيه في غزوة أحد، قال:ـ
لَمَّا قُتِلَ عَبْدُ اللَّهِ بْنُ
عَمْرِو بْنِ حَرَامٍ يَوْمَ أُحُدٍ لَقِيَنِي رَسُولُ اللَّهِ ـ صلى
الله عليه وسلم ـ فَقَالَ " يَا جَابِرُ أَلاَ أُخْبِرُكَ مَا قَالَ
اللَّهُ لأَبِيكَ " . وَقَالَ يَحْيَى فِي حَدِيثِهِ فَقَالَ " يَا
جَابِرُ مَالِي أَرَاكَ مُنْكَسِرًا " . قَالَ قُلْتُ يَا رَسُولَ
اللَّهِ اسْتُشْهِدَ أَبِي وَتَرَكَ عِيَالاً وَدَيْنًا . قَالَ "
أَفَلاَ أُبَشِّرُكَ بِمَا لَقِيَ اللَّهُ بِهِ أَبَاكَ " . قَالَ
بَلَى يَا رَسُولَ اللَّهِ . قَالَ " مَا كَلَّمَ اللَّهُ أَحَدًا
قَطُّ إِلاَّ مِنْ وَرَاءِ حِجَابٍ وَكَلَّمَ أَبَاكَ كِفَاحًا .
فَقَالَ يَا عَبْدِي تَمَنَّ عَلَىَّ أُعْطِكَ . قَالَ يَا رَبِّ
تُحْيِينِي فَأُقْتَلُ فِيكَ ثَانِيَةً . فَقَالَ الرَّبُّ سُبْحَانَهُ
إِنَّهُ سَبَقَ مِنِّي أَنَّهُمْ إِلَيْهَا لاَ يَرْجِعُونَ . قَالَ
يَا رَبِّ فَأَبْلِغْ مَنْ وَرَائِي . قَالَ فَأَنْزَلَ اللَّهُ
تَعَالَى {وَلاَ تَحْسَبَنَّ الَّذِينَ قُتِلُوا فِي سَبِيلِ اللَّهِ
أَمْوَاتًا بَلْ أَحْيَاءٌ عِنْدَ رَبِّهِمْ يُرْزَقُونَ} " .
Ibj Majah and At-Tirmidhi reported that Jabir bin 'Abdullah said:
When 'Abdullah bin 'Amr bin )Haram) was killed on the Day of Uhud, the Messenger of Allah met me, and said: "O Jabir, shall I not tell you what Allah has said to your father?" Yahya said in his Hadith: "And he said: 'O Jabir, why do I see you broken-hearted?' I (Jabir) said: 'O Messenger of Allah, my father has been martyred and he has left behind dependents and debts.' He said: 'Shall I not give you the glad tidings of that with which Allah met your father?' I said: 'Yes, O Messenger of Allah.' He said: 'Allah never spoke to anyone except from behind a screen, but He spoke to your father directly, and He said: "O My slave! Ask something from Me and I shall give it to you." He said: "O Lord, bring me back to life so that I may be killed in Your cause a second time." The Lord, Glorified is He, said: "I have already decreed that they will not return to life." He said: "My Lord, then convey (this news) to those whom I have left behind." Allah said: "Think not of those as dead who are killed in the way of Allah, Nay, they are alive, with their Lord, and they have provision."
In this Hadith, it is clearly stated that no soul may return back to the world of livings, not even the soul of a martyr or a messenger.