Buhari gave his assessment of the work Osinbajo did with the presidential powers he delegated to him in a statement issued on Friday by his Special Adviser on Media and Publicity, Femi Adesina.
The President also expressed his appreciation to all who prayed for him and expressed their goodwill towards him.
He acknowledged the mischief done by his traducers, and said it deepened his understanding of the scriptures.
The statement said: "The President is back. This is a day of joy. It is a splendid day. It is a day to give glory, honour and majesty to God.
The President Muhammadu Buhari has expressed his appreciation once again to all those who prayed and all those who expressed goodwill towards him.
"He is a man, who loves our country; who is serving the country; who wants to see Nigeria take its place among the comity of nations.
"He knows that some people did mischief with what happened to him. He has learnt a lesson from it that there may be many devises in the heart of man, but it is the counsel of the Lord that shall stand. The counsel of the Lord concerning Nigeria is that the President should return, and he has returned to continue with the good work.
"While the President was away, the Acting President, Yemi Osinbajo, who is the Vice-President, did a fantastic job. They will continue to do the job together to the glory of God and to the good of our country."