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." (DE)
English reference (DE): Vol. 1, Book 5, Hadith 1255 (DE)
Arabic reference (DE): Book 5, Hadith 1313 (DE)