Abdullah bin Abbas reported,

There was a time when I used to say that the children of the Muslims will be with the Muslims and the children of the polytheists will be with the polytheists, until so-and-so reported to me from so-and-so that the Messenger of Allah ﷺ was asked about them and he said, "Allah knows best what they would have done."So I met the man, and he informed me of this, and I refrained from saying what I had been saying.

Ahmad 20697

Sahih

حدثنا عفان حدثنا حماد يعني ابن سلمة أخبرنا عمار يعني ابن أبي عمار

عن ابن عباس قال

أتى علي زمان وأنا أقول أولاد المسلمين مع المسلمين وأولاد المشركين مع المشركين حتى حدثني فلان عن فلان أن رسول الله ﷺ سئل عنهم فقال الله أعلم بما كانوا عاملين قال فلقيت الرجل فأخبرني فأمسكت عن قولي

أحمد 20697صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Man
Numbering
Darussalam 20697
Ahmad 20697