Hadith 1156

وَعَنِ ابْنِ عُمَرَ رَضِيَ اللَّهُ عَنْهُمَا: أَنَّ رَجُلًا سَأَلَهُ فَقَالَ: إِنِّي أُصَلِّي فِي بَيْتِي ثُمَّ أُدْرِكُ الصَّلَاةَ فِي الْمَسْجِدِ مَعَ الْإِمَامِ أَفَأُصَلِّي مَعَهُ؟ قَالَ لَهُ: نَعَمْ قَالَ الرجل: أَيَّتهمَا أجعَل صَلَاتي؟ قَالَ عُمَرَ: وَذَلِكَ إِلَيْكَ؟ إِنَّمَا ذَلِكَ إِلَى اللَّهِ عَزَّ وَجَلَّ يَجْعَلُ أَيَّتَهُمَا شَاءَ. رَوَاهُ مَالِكٌ
Ibn ‘Umar said that a man questioned him saying, “When I pray in my house and then come to the mosque in time for prayer along with the imam, should I pray along with him?” He replied, “Yes.” The man asked which of them he should consider his obligatory prayer, and Ibn ‘Umar replied, “Is that your affair?* that is only to be left to God’s decision who will appoint whichever He wishes.” *The Arabic is in the form of a statement, but in view of the phrase immediately following it seems necessary to treat it as a question. Malik transmitted it.
Hadith Reference Mishkat al-Masabih / The Book of Prayer / Hadith: 1156
Hadith Grading الألبانی: صَحِيحٌ  |  زبیر علی زئی: إسناده صحيح
Hadith Takhrij ´تحقيق و تخريج: محدث العصر حافظ زبير على زئي رحمه الله` «إسناده صحيح، رواه مالک (1/ 133 ح 295)»