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.
bukhari:1132bMuḥammad b. Salām > Abū al-Aḥwaṣ > al-Ashʿath > Idhā

He (the Prophet ﷺ ) used to get up for the prayer on hearing the crowing of a cock.  

البخاري:١١٣٢bحَدَّثَنَا مُحَمَّدُ بْنُ سَلاَمٍ قَالَ أَخْبَرَنَا أَبُو الأَحْوَصِ عَنِ الأَشْعَثِ قَالَ إِذَا

سَمِعَ الصَّارِخَ قَامَ فَصَلَّى