Al-Ilmam bi-Ahadith al-Ahkam 413
وَعَن أبي مَسْعُود الْأنْصَارِيّ رَضِيَ اللَّهُ عَنْه، قَالَ: قَالَ رَسُول الله ﷺ : " إِن الشَّمْس وَالْقَمَر آيتان من آيَات الله يخوف الله بهما عباده، وإنهما لَا يكسفان لمَوْت أحد من النَّاس، فَإِذا رَأَيْتُمْ مِنْهَا شَيْئا فصلوا وَادعوا، حَتَّى يكْشف مَا بكم ". أخرجهَا كلهَا مُسلم، وَبَعضهَا مُتَّفق عَلَيْهِ.
And from Abu Masʿud al-Ansari, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "The sun and the moon are two of the signs of Allah by which Allah frightens His servants, and they are not eclipsed for the death of anyone among the people. When you see anything of that, pray and supplicate until what is upon you is removed." Muslim recorded all of them, and some of them are agreed upon.