True friendship is the one for the sake of Allah Almighty. This kind of friendship will everlasting until the Day of Judgment. And it is loved by Allah.
The Prophet ﷺ said,
قَالَ اللَّهُ تَعَالَى حَقَّتْ مَحَبَّتِي لِلَّذِينَ يَتَصَادَقُونَ مِنْ أَجْلِي وَحَقَّتْ مَحَبَّتِي لِلَّذِينَ يَتَنَاصَرُونَ مِنْ أَجْلِي
“Allah Almighty said: My love is a right upon those who befriend each other for my sake. My love is a right upon those who defend each other for my sake”[Al-Mu’jam al-Saghir, al-Albani says that this hadith is sahih].
And all friendships due to any other things, are temporary. It is not everlasting. For example, if your friend befriends with you because of wealth, so when you’re wealth runs out, they will leave you.
Join our food provision program by giving only $10 per month and help keep the support going at ussunnah.org/orphans.