Sent into retirement. For a racehorse this is often quite literal (though not as good as being put out to stud).

For humans it's usually metaphorical, and tends to imply that the retirement was not voluntary. Definitely not as good as being put out to stud.