How to restore a rigidbody rotation

Hi,
I have a rigidbody platform with a configurable joint, I want after the player or any other rigidbody leaves this platform then the platform restores his original rotation on about several seconds.
thanks and sorry for my bad English.

Store the original rotation in a Quaternion, then set transform.rotation to the saved Quaternion to restore. If you need to do this smoothly over a few seconds (trying to read into your intentions here!) look at using Quaternion.Slerp.