Who wrote this quote 'If you don't stand for something you'll fall for anything'?

"If you don't stand for something you'll fall for anything"

The attributions to Alexander Hamilton are correct. A different version of the same point was said by Malcolm X hundreds of years later. Interestingly, he closely quoted Hamilton.

On the other hand theOxford Dictionary of Quotations says that the British journalist Alex Hamilton said 'Those who stand for nothing fall for anything', in a 1978 radio broadcast which was subsequently transcribed in the journal The Listener. I suspect that the American Alexander Hamilton has had the credit for this quotation given to him through a very understandable confusion of names.

In a 1997 court case which entirely hinged on the authorship of the line 'You've got to stand for something or you'll fall for anything', the defence showed that similar lines had been used by Peter Marshall in 1947 (as thenostromo noted above), by Ginger Rogers in 1978, by the British Alex Hamilton in the same year, and by unnamed writers to newspapers in 1989 and 1990; also that it had been ascribed to both Malcolm X and Martin Luther King. Despite the amount of research that must have gone into amassing those citations no mention was made of Alexander Hamilton. Doesn't that suggest that it's a misattribution, and one which was not yet common in 1997?

"Stand for something or you will fall for anything. Today's mighty oak is yesterday's nut that held its ground."

is to believed to have been said by Rosa Parks (Rosa Louise McCauley Parks (1913 - 2005, African American civil rights activist) but not as the originator of the quotation