It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "Fast when you see it (the new moon) and stop fasting when you see it. If clouds or mist come between you and it, then complete thirty days of Sha'ban, and do not welcome Ramadan by fasting a day of Sha'ban."
Related hadith on this topic