(Imām Bukhārī narrates): Asbagh narrated to us, he said: Ibn Wahb informed me, he said: 'Amr informed me, from 'Abdur-Rahmān ibn al-Qāsim, he narrated to him from his father, from Ibn 'Umar, may Allāh be pleased with them both, he informs that the Prophet ﷺ said:
The sun and the moon are not eclipsed because of anyone's death, nor because of anyone's life, but they are two signs among the signs of Allāh. So when you see them both, pray.
حَدَّثَنَا أَصْبَغُ قَالَ أَخْبَرَنِي ابْنُ وَهْبٍ قَالَ أَخْبَرَنِي عَمْرٌو عَنْ عَبْدِ الرَّحْمَنِ بْنِ الْقَاسِمِ حَدَّثَهُ عَنْ أَبِيهِ عَنْ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا أَنَّهُ كَانَ يُخْبِرُ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنَّ الشَّمْسَ وَالْقَمَرَ لَا يَخْسِفَانِ لِمَوْتِ أَحَدٍ وَلَا لِحَيَاتِهِ وَلَكِنَّهُمَا آيَتَانِ مِنْ آيَاتِ اللَّهِ فَإِذَا رَأَيْتُمُوهَا فَصَلُّوا
Reference: Sahih Al Bukhari 1042