I agree with S.R. Associates and Mihir.
Gift received from father-in-law is exempt from tax since it is gift from a relative covered in the definition of reletive under Income Tax Act. But when a gift is received from either - Spouse, Father-in-law or Mother-in-law; clubbing of income provisions apply.
It means that any income that you derive from the gift received by you from above three persons will be clubbed in the income of the respective person for taxation.
In your case,
If you put the house bought by you using amount gifted by your father-in-law, on rent, then the rental income will be added to your father-in-law's income.
If you derive capital gain by selling the house purchased using such gift amount, then the capital gain will be added to his income.
Hope your query is sorted out. If you have any more questions feel free to ask.