Mishkat al-Masabih 1734
وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: مَا مِنْ مُؤْمِنٍ إِلَّا وَله بَابَانِ: بَاب يصعد مِنْهُ علمه وَبَابٌ يَنْزِلُ مِنْهُ رِزْقُهُ. فَإِذَا مَاتَ بَكَيَا عَلَيْهِ فَذَلِكَ قَوْلُهُ تَعَالَى: (فَمَا بَكَتْ عَلَيْهِمُ السَّمَاء وَالْأَرْض) رَوَاهُ التِّرْمِذِيّ
From Anas, who said: The Messenger of Allah ﷺ said: "There is no believer except that he has two gates: a gate through which his deeds ascend and a gate through which his provision descends. When he dies, they both weep for him. That is His saying, the Exalted: 'And the heaven and the earth did not weep for them.'" Reported by at-Tirmidhi.