It is narrated from the wife of the Prophet ﷺ, Umm Salamah (may Allah be pleased with her), that the Prophet ﷺ was asked about a garment that had menstrual blood on it. He ﷺ said: "First, scrape it off, then rub it with water and wash it, then pray in it."
Hadith Referenceمسند الإمام الشافعي / كتاب الطهارة / 31
Hadith Takhrijصحيح من حديث أسماء وهذا إسناد ضعيف جداً فإن شيخ الشافعي متروك، أخرجه أبو داود، الطهارة، باب المرأة تغسل ثوبها الذي تلبسه في حيضها (361).