Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:6912Abū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās > al-Rabīʿ > al-Shāfiʿī > al-Thiqah from Ahl al-Madīnah Biʾisnād Lā Aḥfaẓuh > Ṣullī

[Machine] Abu Al-Abbas narrated from Ar-Rabi' that An-Nabahaniyyu narrated from Ash-Shafi'i who narrated from Ath-Thiqa from the people of Al-Madinah with a chain of narration that I do not remember exactly, that they mentioned that he (the Prophet) prayed upon Aqil ibn Abi Talib, and the sun turned slightly yellow before setting, but they did not wait for the sunset with it.  

البيهقي:٦٩١٢أَخْبَرَنَا أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو

ثنا أَبُو الْعَبَّاسِ أنبأ الرَّبِيعُ أنبأ الشَّافِعِيُّ أنبأ الثِّقَةُ مِنْ أَهْلِ الْمَدِينَةِ بِإِسْنَادٍ لَا أَحْفَظُهُ أَنَّهُ صُلِّيَ عَلَى عَقِيلِ بْنِ أَبِي طَالِبٍ ؓ وَالشَّمْسُ مُصْفَرَّةٌ قَبْلَ الْمَغِيبِ قَلِيلًا وَلَمْ يَنْتَظِرُوا بِهِ مَغِيبَ الشَّمْسِ