Regarding the verse "And for that He created them" [Hud 11:119], he said, "He created these for this and those for that."
حدثنا موسى بن إسمعيل حدثنا حماد حدثنا خالد الحذاء
في قوله تعالى {ولذلك خلقهم} قال خلق هؤلاء لهذه وهؤلاء لهذه
No references are available.
[Its isnad is sahih]. Bayhaqi narrated it in Qadar wal Qadar, (p. 86b), from the hadith of Hammad bin Salama, by this route.