Abdullah bin Umar reported,

I pray as I saw my companions pray. I do not forbid anyone from praying by night or by day as much as he wishes, except that you should not deliberately seek out the time of sunrise or sunset.

Bukhari 589

Sahih

حدثنا أبو النعمان حدثنا حماد بن زيد عن أيوب عن نافع

عن ابن عمر قال

أصلي كما رأيت أصحابي يصلون لا أنهى أحدا يصلي بليل ولا نهار ما شاء غير أن لا تحروا طلوع الشمس ولا غروبها

البخاري 589صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Prayer times
Chapter
Those who only disliked praying after Asr and Fajr
Numbering
Darussalam 589
Bukhari 589