Two expressions for two situations
Malay uses selamat in a range of conventional greetings. Malam refers to night and tidur to sleep, so the surrounding situation clarifies what you mean. You might greet someone at an evening event with Selamat malam, then wish your host Selamat tidur before retiring for the night. Learning the two phrases as a pair helps prevent a common mistake made by speakers of English, whose own evening greeting and bedtime farewell use different words.
What makes a Malay sleep wish warmer
Lena describes sound or restful sleep. A wish containing tidur lena therefore has a more specific focus on the quality of someone’s rest. Mimpi indah turns the attention to pleasant dreams and is a more personal addition to a message. Neither expression is necessary for routine transactions. With an acquaintance, a short standard farewell may be more comfortable than a string of affectionate phrases copied from a greeting card.
Language choice in a multilingual setting
Visitors may encounter Malay, English, Mandarin, Tamil and other languages in Malaysia. There is no single bedtime formula used in every household. If a conversation has been conducted in English, ending it with an English good-night wish is entirely reasonable. Using a Malay expression can be a friendly gesture when it suits the exchange. Malay and Indonesian share many words, but do not assume that every colloquial expression or pronunciation is interchangeable between the two varieties. Listening to local speakers helps you recognise the differences.