Mishkat al-Masabih
Anas reported God’s messenger as saying, “Every believer has two gates, one by which deeds ascend and one by which his provision comes down, and when he dies they weep for him.” That agrees with God's words, “Neither the heaven nor the earth wept for them.”(Qur’an xliv, 29) Tirmidhi transmitted it.
وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: " مَا مِنْ مُؤْمِنٍ إِلَّا وَله بَابَانِ: بَاب يصعد مِنْهُ علمه وَبَابٌ يَنْزِلُ مِنْهُ رِزْقُهُ. فَإِذَا مَاتَ بَكَيَا عَلَيْهِ فَذَلِكَ قَوْلُهُ تَعَالَى: (فَمَا بَكَتْ عَلَيْهِمُ السَّمَاء وَالْأَرْض) رَوَاهُ التِّرْمِذِيّ
Reference