Question:
What is the ruling on fasting one or two days in anticipation of Ramadan?
Answer:
It is not correct; it has been prohibited in the hadith.
Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said:
لا تقدموا رمضان بصوم يوم ولا يومين إلا رجل كان يصوم صوما فليصمه
None of you should fast one or two days before Ramadan, except a person whose usual routine of fasting happens to include that day.
Reference: (Sahih al-Bukhari: 1914, Sahih Muslim: 1082)