Hang up one’s hat
Call it a day; to finish work, sometimes to retire from work, is originally an American expression that dates from the 19th century. American men were known for wearing hats most of the time, even in the workplace. Watch old American movies to witness the extent of this habit. Therefore, when they finally took off their hats and hung them up, it signalled the end of the day.