It was narrated from Abu Hurairah that:
the Messenger of Allah (ﷺ) gave Barirah the choice.
English reference: Vol. 3, Book 10, Hadith 2078
Arabic reference: Book 10, Hadith 2156
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.