E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Those who live in glass houses should not throw stones. When, on the union of the two crowns, London was inundated with Scotchmen, Buckingham was a chief instigator of the movement against them, and parties used nightly to go about breaking their windows. In retaliation, a party of Scotchmen smashed the windows of the Dukes mansion, which stood in St. Martins Fields, and had so many windows that it went by the name of the Glass-house. The court favourite appealed to the king, and the British Solomon replied, Steenie, Steenie, those wha live in glass housen should be carefu how they fling stanes.
This was not an original remark of the English Solomon, but only the application of an existing proverb: El que tiene tejados de vidro, no tire piedras al de su vezino. (Nunez de Guzman: Proverbios.) (See also Chaucers Troylus, ii.)