Burn the midnight oil
Idioms, phrasal verbs and collocations
meaning: to work or study well past midnight
In the old days, oil lamps, which burned oil, were used to provide light at night.
examples: We need to burn the midnight oil in order to finish this project.
I was burning the midnight oil this week preparing for my exams.