It’s obligatory to disclose information about your former visa rejections to these countries as hiding this information may affect the final decision. If your visa application wasn’t approved for some reason, apart from such significant violations as an expulsion from the country, violation of terms of stay, deportation, etc., you are safe to apply for a citizenship. At the same time, hiding this information when submitting a case can serve as a basis for rejecting the application.