Sunan Abi Dawud, Book 42, Hadith 20 (Abu Dawud 4617)

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.