Tawus al-Yamani (may Allah have mercy on him) said: The Companions (may Allah be pleased with them) of the Messenger of Allah (peace and blessings be upon him) used to say that everything is according to divine decree. Tawus (may Allah have mercy on him) said: I heard Abdullah bin Umar (may Allah be pleased with them both) say that the Messenger of Allah (peace and blessings be upon him) said: "Everything is by divine decree, even incapacity and astuteness."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الشهادات / 20882