How to get historical stock prices (weekly) with the GOOGLEFINANCE function in Google Sheets

Example of how to get historical stock prices (weekly) with the GOOGLEFINANCE function in Google Sheets