Umar bin Khattab reported,

The Messenger of Allah ﷺ used to show us the day before the battle the very spots where the people of Badr would fall. He would say, "This is where so-and-so will fall tomorrow, if Allah wills."He said, "By the One who sent him with the truth, they did not miss the boundaries that the Messenger of Allah ﷺ had marked out." Then they were thrown into a well, one on top of another.

Azami 3781

Sahih

عن عمر بن الخطاب قال

إن رسول الله ﷺ كان يرينا مصارع أهل بدر بالأمس، يقول: هذا مصرع فلان غدا إن شاء الله قال: فوالذي بعثه بالحق ما أخطؤوا الحدود التي حد رسول الله ﷺ، قال: فجعلوا في بئر بعضهم على بعض.

الأعظمي 3781صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Burial and its related matters
Section
Burying the disbeliever and the polytheist in their own graveyards, and that they are not buried in Muslim graveyards
Numbering
Jami al-Kamil 3781 (2nd edition)
Azami 3781