He said, "O Noah, indeed he is not of your family; indeed, he is [one whose] work was other than righteous, so ask Me not for that about which you have no knowledge. Indeed, I advise you, lest you be among the ignorant."
Allah said to Noah that his son, who he asked Him to save, was not from his family, whom He had promised to save, because he was a disbeliever. Noah’s question was not appropriate coming from him, and was not right for someone of his rank. Allah told him not to ask Him about what he had no knowledge about, cautioning him not to be among those who are ignorant, by asking Him for things that go against His knowledge and wisdom.