Bonds may be safer than stocks in the short term, but they can actually be riskier in the long term. This is a quick chart of rolling 20-year returns of US stocks vs bonds using Shiller data, showing that there has never been a 20-year period in the US since 1871 where US bonds have underperformed stocks. Past performance is no indication of future results.
Source: Robert Shiller at Yale