Hadithcore
Sunan Abi Dawud, 4615

Khalid al-Hadhdha, asked al-Hasan about the Quranic verse:

“And for this did He create them.” He said: He created these for this and those for that.

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا حَمَّادٌ، حَدَّثَنَا خَالِدٌ الْحَذَّاءُ، عَنِ الْحَسَنِ، فِي قَوْلِهِ تَعَالَى ‏{‏ وَلِذَلِكَ خَلَقَهُمْ ‏}‏ قَالَ خَلَقَ هَؤُلاَءِ لِهَذِهِ وَهَؤُلاَءِ لِهَذِهِ ‏.‏

References2 variants
In-Book Reference
Book 42, Hadith 20
English Reference
Book 41, Hadith 4598