English : Vol. 1, Book 5, Hadith 1255
Grading supplied with this record: Sahih (Darussalam)
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
لَعَلَّكُمْ سَتُدْرِكُونَ أَقْوَامًا يُصَلُّونَ الصَّلاَةَ لِغَيْرِ وَقْتِهَا فَإِنْ أَدْرَكْتُمُوهُمْ فَصَلُّوا فِي بُيُوتِكُمْ لِلْوَقْتِ الَّذِي تَعْرِفُونَ ثُمَّ صَلُّوا مَعَهُمْ وَاجْعَلُوهَا سُبْحَةً "
It was narrated that "Abdullah bin Mas'ud said:
"The Messenger of Allah (ﷺ) said: "You may come across people who offer a prayer at the wrong time. If you meet them, then perform prayer in your houses at the time that you know, then pray with them and make that voluntary."
Full reference and source
English : Vol. 1, Book 5, Hadith 1255 Arabic : Book 5, Hadith 1313
View source on Sunnah.com (opens in a new tab)