The defender's testimonial will be held in August against Sevilla.
Ferguson, who signed Ferdinand from Leeds in 2002, said: "It is great that the club are granting Rio a testimonial for his services to the club.
"He is one of the best central defenders this club has seen. Rio has a natural ability to read the game and I said last month that I believed that this season has been the best of his Manchester United career.
"It will be a fantastic night for him and the fans, but it also gets next season's campaign off to a great start."