Two German rappers will not face prosecution over lyrics that referenced Auschwitz and the Holocaust.

Kollegah and Farid Bang caused uproar after comparing their bodies with those of Auschwitz prisoners, as well as for suggesting they were “doing another Holocaust”.

However, prosecutors have said their artistic freedom was guaranteed by the constitution, and while the rap lyrics were deemed offensive, they did not amount to Holocaust denial or incitement of violence.

Dusseldorf prosecutor’s office spokesman Ralf Herrenbruck told German media that while the words may have been vulgar, misogynistic and homophobic, it would not be possible to bring charges, saying it was “neither an endorsement nor a trivialisation of the Nazi regime and its genocide”.

“The comparison of a concentration camp inmate with their own body may be tasteless, but it does not represent denial of the Holocaust,” a statement added.

Best-dressed at the MTV Movie and TV Awards 2018 Show all 27 1 /27 Best-dressed at the MTV Movie and TV Awards 2018 Best-dressed at the MTV Movie and TV Awards 2018 Zendaya The actor and singer paired a bespoke August Getty gown with slicked back hair Getty Best-dressed at the MTV Movie and TV Awards 2018 Tiffany Haddish The host of the evening wore Galia Lahav Getty Best-dressed at the MTV Movie and TV Awards 2018 Chloe x Halle Recording artists Chloe and Halle Bailey both donned floral Marc Jacobs dresses Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Romeo Miller The rapper worked head to toe millennial pink Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Olivia Munn The actor stunned in a plunging, emerald, velvet jumpsuit Getty Best-dressed at the MTV Movie and TV Awards 2018 Noah Schnapp and Sadie Sink The young stars of Stranger Things were naturals on the red carpet Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Nick Jonas The singer looked suave in black leather Getty Best-dressed at the MTV Movie and TV Awards 2018 Michael B Jordan The Black Panther actor wore Dsquared 2 Getty Best-dressed at the MTV Movie and TV Awards 2018 Mandy Moore The actor and singer wore a studded Carolina Herrera dress Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Lili Reinhart The Riverdale star wore Izeta Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Kristen Bell The actor wore a Julien Macdonald mini Getty Best-dressed at the MTV Movie and TV Awards 2018 Manny MUA The make-up artist and online influencer looked fierce in leather and flawless makeup Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Halsey The singer matched her outfit to the carpet with this Julien Macdonald number Getty Best-dressed at the MTV Movie and TV Awards 2018 Boots Riley The rapper and director wore a matching plaid tracksuit - and made it work Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Christ Pratt The actor suited up for the occasion Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Camila Mendes The Riverdale actress wore an Elisabetta Franchi floorlength dress Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Alison Brie The actor wowed in a Sandy Liang dress and Sophia Webster shoes Getty Best-dressed at the MTV Movie and TV Awards 2018 Ajiona Alexus It was all white on the night for the actor and singer Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Madeleine Petsch The Riverdale star wore pink Prada as she was accompanied down the red carpet by fellow actor Travis Mills Getty Best-dressed at the MTV Movie and TV Awards 2018 Cristin Milioti and Betty Gilpin Gilpin wore tailored Zac Posen while fellow actor Milioti was seeing stripes Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Yara Shahidi The actor was pastel perfection in Tory Burch and Christian Louboutin Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Steven Silver The 13 Reasons Why star donned a burnt orange suit Getty Best-dressed at the MTV Movie and TV Awards 2018 Ross Butler The actor looked casual and cool in his open-collar shirt Getty Best-dressed at the MTV Movie and TV Awards 2018 Dacre Montgomery and model Liv Pollock The actor and model co-ordinated outfits Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Chadwick Boseman The Black Panther star wore statement double denim Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Arielle Vandenberg The actor and model wore Zhivago Getty Images for MTV Best-dressed at the MTV Movie and TV Awards 2018 Quincy Brown The actor took to the red carpet in a striking Michael Cinco suit Getty

The controversy surrounding the rap duo was sparked by two lines from their latest album JBG3 (Young, brutal, good looking 3).

One track includes the words: “My body is more defined than those of Auschwitz inmates.” Another has the lyric: “I’m doing another Holocaust, coming with the Molotov.”

The lines came under scrutiny when the pair were awarded the prestigious Echo prize in the hip hop/urban category, which sparked condemnation by high-profile music industry figures across Germany, along with several Jewish groups.

Several artists – including renowned conductor Daniel Barenboim – began handing back their prizes in protest.

Rock singer Marius Muller-Westernhagen also said he was handing back the seven Echos he has won since the 1990s. Other artists returning their awards include the pianist Igor Levit, and musician and producer Klaus Voormann, who designed the cover for the Beatles album Revolver.

The award was then scrapped to ensure “such a mistake could not be repeated in the future”.

The BVMI [Federal Music Industry Association] has now said: “[We] do not want the Echo award to be perceived as a platform for antisemitism, misogyny, homophobia, or belittling of violence.”

“The Echo brand is so badly damaged that a complete new beginning is necessary,” they added.