It wasnarrated that 'Abdullah bin Mas'ud said:
"The Messenger ofAllah (ﷺ) said: 'You may come across people who offer a prayer atthe wrong time. If you meet them, then perform prayer in your housesat the time that you know, then pray with them and make thatvoluntary."
English reference: Vol. 1, Book 5, Hadith 1255
Arabic reference: Book 5, Hadith 1313
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.