From Sahih Bukhari (Hadith 320):
Narrated `Aisha:Fatima bint Abi Hubaish used to have bleeding in between the periods, so she asked the Prophet (ﷺ) about it. He replied, "The bleeding is from a blood vessel and not the menses. So give up the prayers when the (real) menses begins and when it has finished, take a bath and start praying
Reference: Bukhari 320