Source: As worded by Indian Railways, Government of India
If you were not provided accommodation due to unforeseen circumstances, you are entitled to full refund of the fare paid by you without any deductions. To claim this refund, you should surrender your ticket at the journey originating station within three hours after the actual departure of the train.