Nigeria’s agricultural sector relies heavily on rainfall, but insecurity in various regions poses significant challenges. This study aims to address this issue by identifying secure, rain-rich areas in northern Nigeria to support sustainable agriculture. Two models, one integrating classical statistical methods (polynomial and Fourier series fittings) and another using a hybrid approach (artificial neural networks, polynomial, and Fourier series fittings), were employed to analyze historical rainfall data from 1981 to 2021 in the selected districts (Kano, Zaria, Bida, Nguru, and Yelwa) known for their rainfall levels and security stability. The study demonstrates that the machine learning-classical hybrid model outperforms existing models, including the classical-classical hybrid and benchmark models like Iwok’s (2016) model, Fourier series, and SARIMA models. Multi-step ahead forecasting with this hybrid model reveals potential changes in rainfall patterns. Notably, Kano, Zaria, Bida, and Yelwa are expected to experience increased rainfall from 2022 to 2026, while Nguru may initially witness decreased rainfall, with improvement in the final year (2026). In conclusion, this study introduces an effective approach for rainfall modeling and forecasting, facilitating the identification of secure agricultural regions in northern Nigeria. These findings carry implications for crop production and agricultural development, contributing to climate resilience efforts and assisting stakeholders in strategic decision-making for regional agricultural investments.