It is narrated from Sayyiduna Abu al-Darda' (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Everything has a door, and the door of worship is fasting."
Imam Abu Ya'la recorded it with a da'if (weak) chain, because one of its narrators, Abu Bakr bin Abdullah bin Abi Maryam, is weak.