“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.”
Sunan Ibn Majah Book 5, Hadith 453