Valmiki Ramayana Ayodhya Kanda Sarga 6 Shloka 5
Original Shlokaएकयामावशिष्टायां रात्र्यां प्रतिविबुद्ध्य सः। अलङ्कारविधिं कृत्स्नं कारयामास वेश्मनः।।2.6.5।।
1 source checked for this shloka
सः he, रात्र्याम् at night, एकयामावशिष्टायाम् with one yama (measure of time equivalent to four hours) left, प्रतिविबुद्ध्य having awakened, वेश्मनः dwelling's, कृत्स्नम् entire, अलङ्कारविधिम् decoration, कारयामास got it done.
He got up (Rama) with one yama (three hours) of the night still left, and had his entire residence decorated.