Mishkat al-Masabih 4622
Abu Razin al-‘Uqaili reported God’s messenger as saying:
“A believer’s vision is a forty-sixth part of prophecy. It flutters over a man as long as he does not talk about it, but when he talks about it it settles.” 
And I think he said, “Talk only to a friend or one with sound judgment."

Tirmidhi transmitted it. 
In Abu Dawud’s version he said, The vision flutters over a man as long as it is not interpreted, but when it is interpreted it settles.” And I think he said, “Tell it only to one who loves him or one who has judgment.”
عَن أبي رزين العقيليِّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «رُؤْيَا الْمُؤْمِنِ جُزْءٌ مِنْ سِتَّةٍ وَأَرْبَعِينَ جُزْءًا مِنَ النُّبُوَّةِ وَهِيَ عَلَى رِجْلِ طَائِرٍ مَا لَمْ يُحَدِّثْ بِهَا فَإِذَا حَدَّثَ بِهَا وَقَعَتْ» . وَأَحْسِبُهُ قَالَ: «لَا تُحَدِّثْ إِلَّا حَبِيبًا أَوْ لَبِيبًا» . رَوَاهُ التِّرْمِذِيُّ وَفِي رِوَايَةِ أَبِي دَاوُدَ قَالَ: «الرُّؤْيَا عَلَى رِجْلِ طَائِرٍ مَا لَمْ تُعْبَرْ فَإِذَا عُبِرَتْ وَقَعَتْ» . وَأَحْسِبُهُ قَالَ: «وَلَا تَقُصَّهَا إِلَّا عَلَى وَادٍّ أَوْ ذِي رأيٍ»