I pray as I saw my companions praying. I do not forbid praying at any time during the day…

Sahih al-Bukhari Book 9 Hadith 65

Sahih al-Bukhari #589

Times of the Prayers 9:65

Narrated Ibn `Umar:

I pray as I saw my companions praying. I do not forbid praying at any time during the day or night except at sunset and sunrise.

Chapter: Whoever did not dislike to offer optional prayers except after the compulsory prayers of 'Asr and Fajr only

Grade: Sahih