It is narrated from Sayyiduna Abdullah bin Abbas and Sayyiduna Abdullah bin Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Whoever fasts Wednesday and Thursday, a decree of freedom from the Fire of Hell is written for him."
Imam Abu Ya'la recorded it; however, its chain is da'if (weak) because of the tadlis of Baqiyyah bin al-Walid.