If you divorced after marriage that was 10 years long or longer, you may be entitled to Social Security retirement benefits under your ex-spouse's record. This could occur if you are at least 62 and receiving benefits under your ex-spouse's record would be an advantage over using your own record. You get the larger benefit between the two records, not benefits from both accounts.
Whether this is your first marriage or a subsequent one, there can be good reasons to consider divorcing over 50. Over the past few decades, "gray divorce" has become something of a trend. In fact, whereas the overall rate of divorce is declining in the United States, the divorce rate for people 50 and over has been rising.