Immanuel Kant said this quote

Inexperienced in the course of world affairs and incapable of being prepared for all the chances that happen in it, I ask myself only 'Can you also will that your maxim should become a universal law?' Where you cannot it is to be rejected...