Source: שבת י. (Shabbos 10a) · Category: Rules of Life

When there is suffering, one comes to entreat his Master, Hashem, dressed a certain way, like a servant before his master. But in good times, one dresses well to daven.

The Gemara in שבת י. (Shabbos 10a) tells how Rava bar Rav Huna and Rava would dress to daven. Rav Ashi says that he saw Rav Kahana, when there was suffering in the world, cast off his cloak, clasp his hands, and daven, and he said he did so like a servant before his master. But when there was shalom in the world, he would dress, cover himself, and wrap himself in a fine cloak, and then daven, citing the pasuk “הכון לקראת אלהיך ישראל” (“Prepare to greet your God, Israel,” Amos 4:12).

Shabbos 10a

Chidushei Rabbeinu HaGra

The Chidushei Rabbeinu HaGra explains that when all is going well for a servant, he appears before his master decked out in his finery, as a matter of respect. But if he wishes to ask his master to relieve him of suffering, he appears without his finery, to show his distress.