The Messenger of Allah ﷺ used to wipe semen off his garment with a stalk of idhkhir grass and then pray in it, and he would scrape it off his garment when it was dry and then pray in it.
حدثنا معاذ حدثنا عكرمة بن عمار عن عبد الله بن عبيد بن عمير
كان رسول الله ﷺ يسلت المني من ثوبه بعرق الإذخر ثم يصلي فيه ويحته من ثوبه يابسا ثم يصلي فيه
No references are available.
Its isnad is sahih. Muaz bin Muaz is trustworthy, and his hadith is precise, accepted by the group.The hadith was narrated by Ibn Khuzayma 1/149, no. 294, and Bayhaqi 2/418.