Frederick the Great did not speak Spanish. He was born in German-speaking Prussia, and he spoke German and French fluently. He also spoke some English and Italian. However, he did not speak Spanish.
The Mighty Monarch: Test Your Knowledge on Frederick II, Holy Roman Emperor