Song lyrics are copyrighted material and the intellectual property of the owner. Quoting them in any form of writing without the publisher's permission is not allowed, even if you credit the owner or publisher. To quote lyrics legally, the writer must obtain the publisher's permission first.
However, mentioning a song's title is permissible without any approvals or permissions. There is no law prohibiting the reference of titles of songs, movies, shows, and so on.
If a writer needs to quote a song, they must follow the formal procedure of acquiring permission to reproduce the lyrics and meet the publisher's requirements before legally quoting them.