Its a Simple Agreement to Future Equity. It's a fundraising instrument where the investor agrees to give the company money in exchange for some amount of equity to be decided at a future date. It's designed to make it easier for founders to get capital at the early stages without having to negotiate valuation.
The best thing to do is to actually read SAFE templates, they are self-explanatory. Pretty much now these are standard instruments for early-stage investing for everyone, not only YC, so investor or founder you’ll see them a lot.
Prior to the SAFE, a lot of startups raised using convertible debt, which had a bunch of strings attached (convertible notes typically have an interest rate, a cap, and a discount). SAFE was an attempt to make this simpler and more founder friendly.