This dialogue is from the 1995 film Rangeela, directed by Ram Gopal Varma. It's spoken by Aamir Khan's character Munna in a classic scene mocking theatre etiquette. The film was known for its fresh take on Mumbai's film industry. Dil Chahta Hai, Dil, and Qayamat Se Qayamat Tak are other famous films but not the source.