This is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both), and the Messenger of Allah (peace and blessings be upon him) said: "When I command you to do something, do of it as much as you are able."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصيام / Q8214