Wiz Khalifa escaped with just a caution when police found him in possession of marijuana.

The 'Black and Yellow' rapper was in his hotel room in Nashville over the weekend when officers turned up at his door after a fellow guest had complained about a strong smell of cannabis.

According to gossip website TMZ.com, Wiz - real name Cameron Jibril Thomaz - threw a ''marijuana cigarette'' out of the window before letting the police in.

However, officers recovered the item from outside, and said in their report: ''Inside the rolling paper was a green leafy substance consistent with marijuana.''

Wiz - who is engaged to model Amber Rose - later admitted to owning the joint and confessed to having another 3.7g of marijuana in his pocket.

The 'Work Hard, Play Hard' hitmaker - who is very open about his cannabis use - was then given a citation.

Wiz has been arrested before for drug use but he says he's not ashamed of the fact he uses marijuana and has previously said he wants it to be legalised.

He has said: ''I thought weed was bad for a minute. When I was younger, I thought it was bad, but I got to a point where it worked for me. It don't work for everybody else. People gotta stay free, people need jobs, people got parents that probably wouldn't be with it, so don't ruin your life trying to be like me. That's my advice.''

''Definitely, legalise it. Please, everybody needs it. The world would be a better place.''