Old Trafford No.1 will quit playing at end of season and has been given the opportunity to return to the club where he began his senior career by head coach Frank de Boer.