Spanish news outlet El Pais had quoted three government sources who said that the agreement was made thanks to the good diplomatic ties between the two countries.

Spain Denies Reports of Agreement to Return Rescued Migrants to Morocco
Moroccan Navy vessel