The Prophet ﷺ would take a bath because of sexual defilement on Friday, after opening a vein and after washing a dead body.
أَنَّ النَّبِيَّ ﷺ كَانَ يَغْتَسِلُ مِنْ أَرْبَعٍ مِنَ الْجَنَابَةِ وَيَوْمِ الْجُمُعَةِ وَمِنَ الْحِجَامَةِ وَمِنْ غُسْلِ الْمَيِّتِ