sounds that he had a prolaps if you are talking about something white sticking out of its butt ... an impaction (or intestinal parasites) can trigger this sometimes.
sorry to hear that he passed away