Term: burn the midnight oil
Example: i had to burn the midnight oil to get that done
Definition: to work diligently, especially late into the night