John Lennon used the phrase "a hard days night" in a short story that came out before The Beatles' song with a similar name. The short story hasn't aged well.
Ringo Starr‘s contributions to The Beatles get understated, but there’s one way they might be overstated. Ringo is credited with coming up with the title of The Beatles’ “A Hard Day’s Night.” John Lennon gave Ringo a lot of credit, while still acknowledging he used the name first. Specifically, John used it in a nonsense story that hasn’t aged particularly well.
In a 1980 interview from the book All We Are Saying: The Last Major Interview with John Lennon and Yoko Ono, John discussed the origins of the name A Hard Day’s Night. “[Director] Dick Lester suggested the title Hard Day’s Night from something Ringo’d said,” he said. “I had used it in In His Own Write, but it was an off-the-cuff remark by Ringo. You know, one of those malapropisms. A Ringoism, where he said it not to be funny, just said it.” John published In His Own Write, a book of avant-garde stories, in March 1964. For comparison, the film A Hard Day’s Night and the song and album of the same name came in July 1964.
Source: Matthew Trzcinski/cheatsheet.com