Nala, also known as Nala Chakravarti (Nala the Emperor), was chosen by Damayanti as her husband in the swayamvara, a function in which the bride selects her husband from among the invitees, in preference to even the gods who came to marry her.
All separated. After undergoing many hardships, in spite of which Nala never deviated from the path of righteousness, he overcame the influence of Shani Deva and regained his kingdom by defeating Pushkara in a rematch. Nala and Damayanti were reunited and lived happily thereafter.
Shani offered Nala a boon when he left him. Nala sought the boon that whoever read his story would not be unduly affected by the malefic effects of Shani Dev.