I asked, "Messenger of Allah, are our deeds based on what the Pen has already recorded and what destiny has already decreed, or do they concern matters yet to come?"He replied, "Rather, they are based on what the Pen has already recorded and what destiny has already decreed, and each person is made ready for what he was created for."
حدثنا هشام بن عمار حدثنا عطاء بن مسلم الخفاف قال حدثنا الأعمش عن مجاهد
قلت يا رسول الله العمل فيما جف به القلم وجرت به المقادير أم في أمر مستقبل قال بل فيما جف به القلم وجرت به المقادير وكل ميسر لما خلق له
Sourcing, sahih. Busiri said, "Mujahid did not hear from Suraqah, but it has a corroborating witness in Muslim," etc., hadith 2648, and with this the hadith is sahih. Qadr, chapter on how mankind was created.