All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Dear questioner: We advise you to fear Allah and be mindful of Him, and to refrain from asking too many hypothetical questions.
As for your question, since you write to us in Arabic sometimes, then please refer to the following Fataawa on the same subject on our Arabic page: 369760, 244363, 315247, 236620, 46043.
If on prays one Rak’ah of the Maghrib prayer before the time of the ‘Ishaa’ prayer begins, then he is considered to have prayed the Maghrib prayer on time. Please refer to Fatwa 283207 on the ruling of the one who prays part of the prayer during its time and part after its prescribed time ends.
Allah knows best.