Ibn Jarir recorded that Sa`id bin Jubayr said, “A man came to Ibn `Abbas, may Allah be pleased with him, and said to him: `O Abu Al-`Abbas, Allah says,
( فَمَا بَكَتْ عَلَيْهِمُ السَّمَآءُ وَالاٌّرْضُ وَمَا كَانُواْ مُنظَرِينَ )
(And the heavens and the earth wept not for them, nor were they given respite) — do the heavens and the earth weep for anybody‘ He, may Allah be pleased with him, said,
`Yes, there is no one who does not have a gate in the heavens through which his provision comes down and his good deeds ascend. When the believer dies, that gate is closed; it misses him and weeps for him, and the place of prayer on earth where he used to pray and remember Allah also weeps for him.
But the people of Fir`awn left no trace of righteousness on the earth and they had no good deeds that ascended to Allah, so the heavens and the earth did not weep for them
Source : Tafseer Ibn Kathir : Surah Al-Dukhan, Verse 29