The rapid growth of wind and solar energy penetration has created critical issues, such as fluctuation, uncertainty, and intermittence, that influence the power system stability, grid operation, and the balance of the power supply. Improving the reliability and accuracy of wind and solar energy predictions can enhance the power system stability. This study aims to contribute to the issues of wind and solar energy fluctuation and intermittence by proposing a high-quality prediction model based on neural networks (NNs). The most efficient technology for analyzing the future performance of wind speed and solar irradiance is recurrent neural networks (RNNs). Bidirectional RNNs (BRNNs) have the advantages of manipulating the information in two opposing directions and providing feedback to the same outputs via two different hidden layers. A BRNN’s output layer concurrently receives information from both the backward layers and the forward layers. The bidirectional long short-term memory (BI-LSTM) prediction model was designed to predict wind speed, solar irradiance, and ambient temperature for the next 169 h. The solar irradiance data include global horizontal irradiance (GHI), direct normal irradiance (DNI), and diffuse horizontal irradiance (DHI). The historical data collected from Dumat al-Jandal City covers the period from 1 January 1985 to 26 June 2021, as hourly intervals. The findings demonstrate that the BI-LSTM model has promising performance in terms of evaluation, with considerable accuracy for all five types of historical data, particularly for wind speed and ambient temperature values. The model can handle different sizes of sequential data and generates low error metrics.