Sahih al-Bukhari 1043
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
إِنَّ الشَّمْسَ وَالْقَمَرَ لاَ يَنْكَسِفَانِ لِمَوْتِ أَحَدٍ وَلاَ لِحَيَاتِهِ، فَإِذَا رَأَيْتُمْ فَصَلُّوا وَادْعُوا اللَّهَ "
Narrated Al-Mughira bin Shu`ba:
"The sun eclipsed in the lifetime of Allah's Messenger (ﷺ) on the day when (his son) Ibrahim died. So the people said that the sun had eclipsed because of the death of Ibrahim. Allah's Messenger (ﷺ) said, "The sun and the moon do not eclipse because of the death or life (i.e. birth) of someone. When you see the eclipse pray and invoke Allah."
Full reference and source
Sahih al-Bukhari 1043 In-book : Book 16, Hadith 4 USC-MSA web (English) : Vol. 2, Book 18, Hadith 153 (deprecated)
View source on Sunnah.com (opens in a new tab)