Heckler & Koch MR556 / MR762 Buffer Detent Locking Pin Spring.
The spring is housed in the receiver and adds tension to the buffer locking pin which holds the buffer spring and buffer assembly in place to prevent it from falling out.