When a cause of action has accrued outside of this state, and by the laws of the place outside this state where such cause of action accrued, an action thereon cannot be maintained by reason of lapse of time, then no action thereon shall be maintained in this state; provided, however, that where such a cause of action has accrued in favor of a resident of this state, this state's law on the period of limitation shall apply.
Miss. Code § 15-1-65