It's best to avoid tell such dreams. Bad dreams are from shaytan who always want to distress us.
عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ أَنَّهُ سَمِعَ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ إِذَا رَأَى أَحَدُكُمْ رُؤْيَا يُحِبُّهَا فَإِنَّمَا هِيَ مِنْ اللَّهِ فَلْيَحْمَدْ اللَّهَ عَلَيْهَا وَلْيُحَدِّثْ بِهَا وَإِذَا رَأَى غَيْرَ ذَلِكَ مِمَّا يَكْرَهُ فَإِنَّمَا هِيَ مِنْ الشَّيْطَانِ فَلْيَسْتَعِذْ مِنْ شَرِّهَا وَلَا يَذْكُرْهَا لِأَحَدٍ فَإِنَّهَا لَا تَضُرُّهُ
6584 صحيح البخاري كتاب التعبير باب الرؤيا من الله
Abu Sa’id al-Khudri reported: The Prophet, peace and blessings be upon him, said, “When one of you sees a dream he likes, it is from Allah so let him praise Allah for it and speak about it. When one of you sees something else he dislikes, it is from Satan so let him seek refuge from its evil and not mention it to anyone. It will not harm him.”
Source: Ṣaḥīḥ al-Bukhārī 6584
Grade: Sahih (authentic) according to Al-Bukhari
56. Dua to avoid nightmares Dua to Avoid nightmares, Sleeplessness, panic
The Prophet صَلَّى اللّٰهُ عَلَيْهِ وَسَلَّمَ said when any one of you got fear in his sleep or in case of panic he should say
*أَعُوذُ بِكَلِمَاتِ اللَّهِ التَّامَّةِ مِنْ غَضَبِهِ وَعِقَابِهِ وَشَرِّ عِبَادِهِ وَمِنْ هَمَزَاتِ الشَّيَاطِينِ وَأَنْ يَحْضُرُونِ*
I seek refuge in Allah's perfect words from His anger, the evil of His servants, the evil suggestions of the devils and their presence.
Sunan Abu Dawud, Book 28, Number 3884-hasan