Before undressing

Bismillāhi In the Name of Allah. Reference: At-Tirmidhi 2/505, among others. See 'Irwa'ul Ghalil no. 49 and Sahihul-Jami' 3/203