The 35-year-old centre-back, who was released by Rovers at the end of last season, will begin pre-season training with the Blades and will officially sign a one-year deal on August 1st.
"I am delighted to get Craig. I've known him a long time and know what he can do," Blades boss Neil Warnock said.