The souls of the dead may be divided into the following two categories:
(a) Favoured souls (those of pious believers) and
(b) Punished souls (those of sinful believers and disbelievers).
The souls of the second group are confined to places of punishment and are too preoccupied with the torments of the grave to be able to meet or visit with each other. However, the blessed and favoured souls of the pious believers are free to roam and meet. They may visit and discuss with each other their previous existence on earth. In the barzakh  every soul will be with companions of like nature. 
In his book, Kitaab ar-Rooh , Imaam Ibnul Qayyim رحمه الله supports this view by bringing proof from the Qur'aan and the Sunnah. He also relates experiences of various scholars regarding what they were informed of in dreams by the souls of their pious, departed companions. The Sharee'ah cannot be based upon the latter, for it is a matter which only the texts of divine revelation can decide. However, there are texts which indirectly give support to Imaam Ibnul Qayyim's رحمه الله assertions as well as those which are obviously clearer in nature.
The following is a sample of a text whose statement is indirect in nature:
Masrooq رحمه الله reported, "The Companions رضي الله عنهم said to the Messenger of Allaah صلى الله عليه وسلم, 'We must not part company with you in the world because when you die and are raised up above, we will not be able to see you.' Then Allaah, the Exalted, revealed the following verse:
"And whoever obeys Allaah and the Messenger (Muhammad صلى الله عليه وسلم), then they will be in the company of those on whom Allaah has bestowed His Grace, of the Prophets (nabiyyeen), the steadfast affirmers of truth (siddeeqeen), the martyrs (shuhadaa'), and the righteous (saaliheen). And how excellent these companions are!" (Sooratun-Nisaa', 4:69) 
According to Imaam Ibnul Qayyim رحمه الله, this "company" or "fellowship" is established in the dunya and is resumed in the barzakh and in the Hereafter. Man is with whom he loves in these three stages of the soul's existence. The souls of faithful believers join the messengers and prophets عليهم الصلاة والسلام of Allaah سبحانه و تعالى, along with the steadfast affirmers of truth, the martyrs and the pious (Saaliheen). This blissful fellowship is not restricted to Paradise but begins immediately after death in the barzakh.
The following text is a direct reference to this point and clear proof that, in general, the souls of pious believers are able to meet and converse with each other:
Sayyiduna Abu Hurayrah رضي الله عنه reported that Allaah's Messenger صلى الله عليه وسلم said: "Verily, the soul of the believer [after death] soars up to the heavens, whereupon the souls of other believers come to it, seeking news about those they know from the people of the earth."  
 The period between death and the Resurrection. Literally, "a partition or separation."
 Kitaab ar-Rooh, p. 28. and al-Aloosi's رحمه الله al-Aayaatul-Bayyinaat, p. 106.
 See pp. 28-32.
 Kitaab ar-Rooh, p. 28.
 Authenticated by Imaam as-Suyooti رحمه الله, al-Aayaatul-Bayyinaat, and Shaykh al-Albaani رحمه الله, Silsilatul-Ahaadeethis-Saheehah, no. 2628.
 Abu Bilal Mustafa al-Kanadi رحمه الله: Mysteries of the Soul Expounded