Breakdown of Перед сном стоит послушать тихую музыку в наушниках.
Questions & Answers about Перед сном стоит послушать тихую музыку в наушниках.
Because the preposition перед (before/in front of) requires the instrumental case.
So сон → instrumental singular сном: перед сном = before sleep / before going to bed.
Сном is instrumental singular of сон (sleep).
Formation here is irregular-ish in English terms but standard in Russian: many masculine nouns take -ом / -ем in the instrumental singular: сон → сном, стол → столом.