Sahih al-Bukhari 1063
Book 16: Eclipses · Hadith 22
Hadith text
Narrated Abu Bakra:In the lifetime of Allah's Messenger (ﷺ) the sun eclipsed and he went out dragging his clothes till he reached the Mosque. The people gathered around him and he led them and offered two rak`at. When the sun (eclipse) cleared, he said, "The sun and the moon are two signs amongst the signs of Allah; they do not eclipse because of the death of someone, and so when an eclipse occurs, pray and invoke Allah till the eclipse is over." It happened that a son of the Prophet (ﷺ) called Ibrahim died on that day and the people were talking about that (saying that the eclipse was caused by his death)
Abu Bakra (رضی اللہ عنہ) bataate hain: Allah ke Rasool ke zamane mein suraj grahan hua aur Aap apne kapde ghaseette hue bahar aaye yahan tak ke masjid pahunche. Log unke aas-paas jama ho gaye aur Aap ne unki imamat karke do rakat padhi. Jab suraj (grahan) saaf ho gaya, Aap ne farmaya: "Suraj aur chaand Allah ki do nishaniyan hain; yeh kisi ki maut ki wajah se grahan nahi hote, isliye jab grahan ho, namaz padho aur Allah se dua karo jab tak grahan khatam na ho jaaye." Aisa hua ke Nabi ke bete Ibrahim ka intiqal usi din hua, aur log iske baare mein baat kar rahe the (ke grahan unki maut ki wajah se hua).
Sahih al-Bukhari 1063 · Book 16, Hadith 22